Skip to content

Commit ab32ce8

Browse files
Sarah LeventhalRonaldJerez
Sarah Leventhal
authored andcommitted
fix(core.js): update to previous fix for native handling of composition events when no mask passed
1 parent 567b870 commit ab32ce8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ export function getInputElement(el) {
5252
* Input event handler
5353
*
5454
* @param {Event} event The event object
55+
* @param {HTMLInputElement} el The input element
5556
*/
56-
export function inputHandler(event) {
57+
export function inputHandler(event, el) {
5758
const { target, detail, inputType } = event
5859

5960
// We dont need to run this method on the event we emit (prevent event loop)
@@ -67,7 +68,7 @@ export function inputHandler(event) {
6768

6869
// Ignore input events related to composition, specific composition
6970
// events will handle updating the input after text is composed
70-
if (['insertCompositionText', 'insertFromComposition'].includes(inputType)) {
71+
if (['insertCompositionText', 'insertFromComposition'].includes(inputType) && el[CONFIG_KEY].config.mask) {
7172
return false
7273
}
7374

0 commit comments

Comments
 (0)