Mathlive Docs SDK reference 'FocusOutEvent' not working
TMYTiMidlY opened this issue · 1 comments
TMYTiMidlY commented
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.
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;
}
}
arnog commented
Good catch. There is a standard focusout event, but move-out has replaced focus-out.