https://github.com/lukasturcani/dioxus-focus-issue
https://github.com/lukasturcani/dioxus-focus-issue
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lukasturcani/dioxus-focus-issue
- Owner: lukasturcani
- Created: 2023-12-20T11:22:48.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-20T11:26:29.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T17:17:47.255Z (9 months ago)
- Language: HTML
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
This repo shows an issue with dioxus ``prevent_default``. In the
HTML example ``working.html`` you can see that if the form has
focus and the button has uses ``event.preventDefault()``.
In the dioxus example, which should behave the same way, use of
``prvent_default`` does not stop the button from stealing focus
from the input element.You can run the example with
.. code-block:: bash
dx serve --hot-reload --open --port 8080