Closed kapilpipaliya closed 1 month ago
TextFieldContext
should be exported. so we can overwrite TextFieldInput
component if required.
setValue
should only be called from the onChange
of TextField
and not TextField.Input
.
The root onChange
recieves a value with kobalte handling whereas the one from the input is the native event and should only be used for advanced custom handling.
Can we export all context for example TextFieldContext
?
Describe the bug When
<TextField.Input onChange={setValue}/>
is passed TextInput displays[object Event]
inside it.Expected behavior It should ignore passed
onChange
and display proper value.Screenshots