From 6a1df2834de2ca60a97ab755a2fbb2e12ca8c1d3 Mon Sep 17 00:00:00 2001 From: Chobits Date: Thu, 8 Jun 2017 10:51:20 +0800 Subject: [PATCH] trigger input event when clearActionClick trigger input event when clearActionClick --- js/input.plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/input.plugin.js b/js/input.plugin.js index 09cb71e5..8cfd59ba 100644 --- a/js/input.plugin.js +++ b/js/input.plugin.js @@ -191,6 +191,7 @@ Input.prototype.clearActionClick = function(event) { var self = this; self.element.value = ''; + $.trigger(self.element, 'input'); $.focus(self.element); self.clearAction.classList.add(CLASS_HIDDEN); event.preventDefault(); @@ -265,4 +266,4 @@ $.ready(function() { $($.classSelector('.input-row input')).input(); }); -})(mui, window, document); \ No newline at end of file +})(mui, window, document);