From 80e9f799c5db6bf9970f7526659c233b70eb2544 Mon Sep 17 00:00:00 2001 From: Xinyu NG Date: Fri, 12 Jun 2020 11:35:01 +0800 Subject: [PATCH] Fix bug of close numpad programmatically --- jquery.numpad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.numpad.js b/jquery.numpad.js index d13ab3e..a35f32a 100644 --- a/jquery.numpad.js +++ b/jquery.numpad.js @@ -31,7 +31,7 @@ nmpd.open(nmpd.options.target ? nmpd.options.target : this.first()); break; case 'close': - nmpd.open(nmpd.options.target ? nmpd.options.target : this.first()); + nmpd.close(nmpd.options.target ? nmpd.options.target : this.first()); break; } return this; @@ -300,4 +300,4 @@ onKeypadClose: false, onChange: false }; -})(jQuery); \ No newline at end of file +})(jQuery);