UNPKG

@obatfr/sweetalert2

Version:

A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes, supported fork of sweetalert

13 lines (11 loc) 446 B
import * as dom from '../utils/dom/index.js' import privateProps from '../privateProps.js' // Get input element by specified type or, if type isn't specified, by params.input export function getInput (instance) { const innerParams = privateProps.innerParams.get(instance || this) const domCache = privateProps.domCache.get(instance || this) if (!domCache) { return null } return dom.getInput(domCache.content, innerParams.input) }