You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that since [this] (#2288) PR, the Autocomplete onChange value parameter is Any.
But actually it should be Any? because clearing the Autocomplete can return null.
This leads to a runtime exception after clearing the Autocomplete component when in the onChange value is specified as Any.
E.g. of failing example
Autocomplete<AutocompleteProps<String>> {
value = state.value
onChange = { _, value:Any, _, _ ->// This causes the runtime exception.
value asString
setState {
this.value = value
}
}
// etc.
}
E.g. of working example
Autocomplete<AutocompleteProps<String>> {
value = state.value
onChange = { _, value:Any?, _, _ ->
value asString?
setState {
this.value = value
}
}
// etc.
}
The text was updated successfully, but these errors were encountered:
I noticed that since [this] (#2288) PR, the Autocomplete
onChange
value parameter isAny
.But actually it should be
Any?
because clearing the Autocomplete can returnnull
.This leads to a runtime exception after clearing the Autocomplete component when in the onChange
value
is specified asAny
.E.g. of failing example
E.g. of working example
The text was updated successfully, but these errors were encountered: