Skip to content

Commit 7a51865

Browse files
committed
Fix test case to include previously missing handler
1 parent 4c2351f commit 7a51865

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/frameworks/ui5/test/models/source-react/uncontrolledcomponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Ui5CustomEvent } from '@ui5/webcomponents-react-base';
55
function UncontrolledComponent({ props }) {
66

77
//direct event value access, no hook/react specific function
8-
const handleButtonPress = (event: Ui5CustomEvent<InputDomRef>) => {
8+
const handleClick = (event: Ui5CustomEvent<InputDomRef>) => {
99
const finalValue = event.target.value; // SOURCE
1010
console.log('Input finalized with value:', finalValue);
1111
};
@@ -14,6 +14,7 @@ function UncontrolledComponent({ props }) {
1414
<div>
1515
<Input
1616
placeholder="Enter some text"
17+
onChange={handleClick}
1718
/>
1819
<Button>
1920
Get Input Value

0 commit comments

Comments
 (0)