DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.35k stars 740 forks source link

Allow <input type="file"> without event handlers to open web view file dialog on Desktop #2134

Closed matteron closed 3 months ago

matteron commented 3 months ago

This add no real benefit other than hopefully prevent confusion in the future.

Currently, clicking an input with type file without any attached event handlers will cause the event to just get swallowed. This just lets the event propagate like normal in those cases.

This seems intentionally disabled at some point, but seems to behave normally now, so I figured might as well.

jkelleyrtp commented 3 months ago

Thanks for the contribution :) looks good