@maskito/core
Version:
The main zero-dependency and framework-agnostic Maskito's package to create an input mask
13 lines (12 loc) • 785 B
TypeScript
import type { MaskitoPlugin } from '@maskito/core';
/**
* All `input` events with `inputType=deleteContentBackward` always follows `beforeinput` event with the same `inputType`.
* If `beforeinput[inputType=deleteContentBackward]` is prevented, subsequent `input[inputType=deleteContentBackward]` is prevented too.
* There is an exception – Android devices with Microsoft SwiftKey Keyboard in Mobile Chrome.
* These devices ignores `preventDefault` for `beforeinput` event if Backspace is pressed.
* @see https://github.com/taiga-family/maskito/issues/2135#issuecomment-2980729647
* ___
* TODO: track Chromium bug report and delete this plugin after bug fix
* https://issues.chromium.org/issues/40885402
*/
export declare function createBrokenDefaultPlugin(): MaskitoPlugin;