Browse Source

Merge pull request #4806 from wenzhixin/bugfix/fix-bug-4700

Attaching mouseup when it is necessary
Dustin Utecht 5 years ago
parent
commit
8f0721843a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -690,7 +690,7 @@ class BootstrapTable {
       this.$toolbar.append(html.join(''))
       const $searchInput = this.$toolbar.find('.search input')
       const handleInputEvent = () => {
-        const eventTriggers = Utils.isIEBrowser() ? 'mouseup' : 'keyup drop blur'
+        const eventTriggers = `keyup drop blur ${Utils.isIEBrowser() ? 'mouseup' : ''}`
         $searchInput.off(eventTriggers).on(eventTriggers, event => {
           if (opts.searchOnEnterKey && event.keyCode !== 13) {
             return