Commit Graph
12 Commits
Author SHA1 Message Date
Evan Almloff d8026f8824 Fix autofill event downcast - ignore events of the wrong type (#5379)
* fix autofill events

* ignore the wrong type of event like we do in desktop

* check the event type before dispatch instead of panicing on downcast

* clean up conversion

* remove example

* pull out shared event list

* pull in deserialize_raw

* unified event list

* prettier comment

* restore test

* restore alias

* normal doc comments

* move over comments

* minimize diff

* remove alias, was moved into the macro
2026-04-07 13:18:24 -07:00
Youn Mélois ab91965cc0 fix onload and onerror parsing error (#3707)
regression error induced by 299b123 where serde default got removed from `load_error` attribute of `ImageData`.

```diff
pub struct ImageData {
-     #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
-     pub load_error: bool,
+     inner: Box<dyn HasImageData>,
}

// ...

+ struct SerializedImageData {
+     load_error: bool,
+ }
```
2025-02-07 16:08:00 -08:00
Evan Almloff 93cbfd0dbc derive more traits for serialized types 2023-08-28 12:35:43 -05:00
Evan Almloff f7dff22552 expose all serialized events as public 2023-08-28 11:49:16 -05:00
Evan Almloff ca1a502714 use an event converter for bundle splitting 2023-08-25 21:03:03 -05:00
Evan Almloff 299b123446 trait based event system 2023-08-25 17:02:48 -05:00
Evan Almloff 043aae1689 fix the onload event 2023-05-08 17:49:28 -05:00
Jonathan Kelley 50faa7dd08 feat: add proper event type 2022-12-19 14:14:01 -08:00
Jonathan Kelley 3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
Jonathan Kelley 08ca068d1c chore: iron out all events 2022-11-21 17:15:17 -08:00
Jonathan Kelley 30ef225812 feat: event handling on desktop 2022-11-17 20:00:39 -08:00
Jonathan Kelley 47d0f51e00 wip: overhaul event system 2022-11-15 16:05:22 -08:00