We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 178fc05 commit d6f727aCopy full SHA for d6f727a
src/js/packages/@reactpy/client/src/components.tsx
@@ -101,6 +101,11 @@ function UserInputElement({ model }: { model: ReactPyVdom }): JSX.Element {
101
// allow the client to respond (and possibly change the value)
102
givenOnChange(event);
103
};
104
+ } else if (!givenOnChange) {
105
+ props.onChange = (event: ChangeEvent<any>) => {
106
+ // set the value so rerender doesn't stomp on state
107
+ setValue(event.target.value);
108
+ }
109
}
110
111
// Use createElement here to avoid warning about variable numbers of children not
0 commit comments