Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount () {
const {mask} = this.props
this.mask = new IMask(this.field, mask)
}
private initMask () {
this.maskRef = IMask(this.element, this.imask as Opts)
.on('accept', this._onAccept.bind(this))
.on('complete', this._onComplete.bind(this));
}
componentDidMount() {
const {mask} = this.props
this.mask = new IMask(this.field, mask)
}
function initMask (el, opts) {
el.maskRef = new IMask(el, opts)
.on('accept', () => fireEvent(el, 'accept', el.maskRef))
.on('complete', () => fireEvent(el, 'complete', el.maskRef));
}
initMask (maskOptions=this._extractMaskOptionsFromProps({...this.props})) {
this.maskRef = new IMask(this.element, maskOptions)
.on('accept', this._onAccept.bind(this))
.on('complete', this._onComplete.bind(this));
this.maskValue = this.props.value;
}
export const maskMaker = config => domEl => iMask(domEl, config);