Closed TMYTiMidlY closed 8 months ago
the custom event 'focus-out' seems no longer supported since 0.90.0, but the 'FocusOutEvent' is still on the web page. by the way, the types in mathfield-element.d.ts should also be updated.
mathfield-element.d.ts
declare global { /** * Map the custom event names to types * @internal */ interface HTMLElementEventMap { 'focus-out': CustomEvent<FocusOutEvent>; 'mode-change': Event; 'mount': Event; 'move-out': CustomEvent<MoveOutEvent>; 'unmount': Event; 'read-aloud-status-change': Event; 'selection-change': Event; 'undo-state-change': Event; 'before-virtual-keyboard-toggle': Event; 'virtual-keyboard-toggle': Event; } }
Good catch. There is a standard focusout event, but move-out has replaced focus-out.
focusout
move-out
focus-out
the custom event 'focus-out' seems no longer supported since 0.90.0, but the 'FocusOutEvent' is still on the web page. by the way, the types in
mathfield-element.d.ts
should also be updated.