From 0987139e4b1530e5a015ede5f7629a2a3f277dc0 Mon Sep 17 00:00:00 2001 From: Ferry Date: Sun, 10 Jan 2021 22:07:18 +0100 Subject: [PATCH] small fix in demo page --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b8edfb4..24186aa 100644 --- a/index.html +++ b/index.html @@ -62,7 +62,7 @@ }); // show modal once - $('#modal-enter-pin').one('shown.bs.modal', function (e) { + $('#modal-enter-pin').on('shown.bs.modal', function (e) { $('#pincode-input8').pincodeInput({ inputs: 4, complete: function (text) { @@ -71,7 +71,8 @@ } }); //autofocus - $('#pincode-input8').pincodeInput().data('plugin_pincodeInput').focus() + $('#pincode-input8').pincodeInput().data('plugin_pincodeInput').clear(); + $('#pincode-input8').pincodeInput().data('plugin_pincodeInput').focus(); }); });