elementUI el-autocomplete does not work properly in ie9

The same title, can sometimes be found in the search, sometimes not trigger a search, if later found to be losing focus, the background is not going to trigger the interface to request data;

Hence the watch monitor the changes in the data, and then use js out of focus

Watch: { 
    "formData.name": { 
      Handler (newVal, oldVal) { 
        IF (this.isIE9) { 
          // ie9 the operation 
          IF (oldVal) { 
            IF (= newVal oldVal!) { 
             
              this.clearTimer (); 
              the this. the setTimeout = Timer (function () { 
                $ ( "# autocompleteInput") Blur ();. 
                $ ( "# autocompleteInput") Focus ();. 
              }, 5000); 
            } 
          } 
        } 
      }, 
      Deep: to true 
      // represents wacth after firstName declared in this method immediately go to execute handler methods 
      // load immediate: to true 
    } 
  }

  

autocompleteInput DOM element remote search 

so you can let it trigger a search, but the search is still choppy, interrupted input is out of focus issues to be addressed

Guess you like

Origin www.cnblogs.com/suiyide/p/11598285.html