diff --git a/src/kioskboard.js b/src/kioskboard.js index a008a08..0b07e27 100644 --- a/src/kioskboard.js +++ b/src/kioskboard.js @@ -654,6 +654,11 @@ // update input value input.value = theInputValArray.join(''); + //create input event + var inputEvent = new Event('input', { + 'bubbles': true, + 'data': input.value + }); // set next selection index if (input.type !== 'number') { input.setSelectionRange(theInputSelIndex + 1, theInputSelIndex + 1); @@ -661,6 +666,7 @@ // input trigger change event for update the value input.dispatchEvent(changeEvent); + input.dispatchEvent(inputEvent); } }); }