cortex-js / cortexjs.io

Source for the cortexjs.io website
http://cortexjs.io/
49 stars 18 forks source link

Mathlive Docs SDK reference 'FocusOutEvent' not working #43

Closed TMYTiMidlY closed 8 months ago

TMYTiMidlY commented 11 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.

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 11 months ago

Good catch. There is a standard focusout event, but move-out has replaced focus-out.