Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter keyboard events by type to ignore autocompletion (#4291)
This PR solves #4290 by ignoring keyboard events that are not of type `KeyboardEvent`. It can be tested with the following snippet by picking an email from the dropdown list: ```py ui.keyboard(ui.notify, ignore=[]) ui.input('email').props('autocomplete=email') ``` Without this PR, the autocompletion triggers a keyboard event, causing an exception due to missing attributes. With this PR there is simply no keyboard event in this case.
- Loading branch information