0.1.8 • Published 6 years ago
@vaadin/active-state-mixin v0.1.8
@vaadin/active-state-mixin
This package provides ActiveStateMixin that does the following:
Listen to keyboard, mouse and touch events on the host element
Set
activeattribute on the host element in following cases:
- Element has
disabledproperty set tofalse - Mouse: primary (left) button is pressed
- Keyboard: Enter or Space is pressed
- Remove
activeattribute when mouse / key / touch is released.
The mixin accepts a class that must apply DisabledStateMixin.