๐ - Missing select() on TextfieldLike
mduft opened this issue ยท 0 comments
mduft commented
Which package(s) are the source of the bug?
@maskito/core
Playground Link
https://stackblitz.com/edit/pf6g1q?file=select-on-focus.plugin.ts
Description
I have this plugin:
export function maskitoSelectOnFocus(): MaskitoPlugin {
return (element: MaskitoElement) => {
const listener = (): void => {
element.select();
};
element.addEventListener('focus', listener, true);
return () => element.removeEventListener('focus', listener, true);
};
}
This no longer compiles with maskito 2.3.2, it did with 2.2.0. I traced it back to contenteditable support, where MaskitoElement i now no longer inheriting all APIs from HTMLInputElement
Maskito version
2.3.2
Which browsers have you used?
- Chrome
- Firefox
- Safari
- Edge
Which operating systems have you used?
- macOS
- Windows
- Linux
- iOS
- Android