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
When using InputText widget with auto completion and an OnChange() callback. The OnChange callback won't be called when the InputText is auto-completed.
In TextWidgets.go (228-278) the callback is called when a change is made. And after this the auto-completion part start doing its thing. I think by adding a call to the callback where the string is auto-completed will solve it, if this is actually a bug. Something like this:
// Press enter will replace value string with first match candidateifIsKeyPressed(KeyEnter) {
*i.value=state.autoCompleteCandidates[0].Strifi.onChange!=nil {
i.onChange()
}
state.autoCompleteCandidates=nil
}
What happend?
When using InputText widget with auto completion and an OnChange() callback. The OnChange callback won't be called when the InputText is auto-completed.
Code example
main.go
To Reproduce
Version
master
OS
Ubuntu
The text was updated successfully, but these errors were encountered: