Enode — API Reference
    Preparing search index...

    Type Alias ModalFocusOptions

    type ModalFocusOptions = {
        initialFocus?: ModalInitialFocus;
        keepTyping?: boolean;
    }
    Index

    Properties

    initialFocus?: ModalInitialFocus

    "panel" (default): the panel itself, so Enter triggers nothing and no ring is painted on a button. "first-field": the panel's first input, for a sheet that is there to be typed into; the panel when it has none.

    keepTyping?: boolean

    Leave the focus with a text field elsewhere that somebody is typing in, unless they just pressed something that opened this modal. For a sheet, which may open by itself (on a push) while an athlete types a number. Default false: a confirm dialog always takes the focus.