Skip to main content

FocusStealController

Purpose​

For use on form inputs.

Set the user's focus to the attached input, on load, or on the firing of an action.

Actions​

ActionPurpose
stealSet the user's focus to the current element

Targets​

TargetPurposeDefault
---

Classes​

ClassPurposeDefault
---

Values​

ValueTypeDescriptionDefault
mode (Optional)StringEither immediate or wait.

immediate will call .focus() on the element as soon as the controller connects.
wait means the controller does not fire on load, it waits for the steal action to be called on demand.
immediate

Events​

EventWhenDispatched onevent.detail
----

Side Effects​

None

How to Use​