Skip to content

Commit 7849e9e

Browse files
Merge pull request #14 from syifarahmat/patch-1
fix: removeClass
2 parents 6c8cfe7 + 1b76f9c commit 7849e9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/otpdesigner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const otpdesigner = function (options = {}, ...args) {
6767
},
6868
removeClass: function (results, data, args) {
6969
let $inputs = $('#otp_' + data.idSuffix).find('.otp-fake-input');
70-
$inputs.addClass(args[0]??[]);
70+
$inputs.removeClass(args[0]??[]);
7171
return results;
7272
},
7373
hiddenInput: function (results, data) {
@@ -406,4 +406,4 @@ const isAcceptedCharacter = (char, onlyNumbers) => {
406406
};
407407

408408
const otpdesigner__alphabets__ = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split("");
409-
const otpdesigner__numbers__ = '0123456789'.split("");
409+
const otpdesigner__numbers__ = '0123456789'.split("");

0 commit comments

Comments
 (0)