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
The FocusedInput event has a focused_entity but that's not how it actually works. It will refer to the entity the propagation is at and NOT the currently focused entity.
This works fine for global listeners, but not for entity specific listeners that are up th tree.
Is this the expected behavior?
I would think focused_entity would be the actual focused entity, and maybe another field like current_entity (inspired by currentTarget in the DOM apis) would track the event target during the propagation.
Any thoughts? I'll open a PR in a few days regardless.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The FocusedInput event has a
focused_entitybut that's not how it actually works. It will refer to the entity the propagation is at and NOT the currently focused entity.This works fine for global listeners, but not for entity specific listeners that are up th tree.
Is this the expected behavior?
I would think
focused_entitywould be the actual focused entity, and maybe another field likecurrent_entity(inspired by currentTarget in the DOM apis) would track the event target during the propagation.Any thoughts? I'll open a PR in a few days regardless.
Beta Was this translation helpful? Give feedback.
All reactions