瀏覽代碼

让输入框对值变化监控更准确

guohh 5 年之前
父節點
當前提交
3d235feb27
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      2020/x-3/biz/js/common/tool.js

+ 1 - 1
2020/x-3/biz/js/common/tool.js

@ -70,7 +70,7 @@ define(["jquery", "ipuUI", "moment-wrap"], function ($, ipuUI, moment) {
70 70
        $(obj).removeClass("common-search-active");
71 71
      });
72 72
73
      $(".common-search-input", this).on("keyup keydown", function (e) { // 输入框是否有值
73
      $(".common-search-input", this).on("keyup input", function (e) { // 输入框是否有值
74 74
        $(obj).toggleClass("common-search-value", $(this).val() != "").width();
75 75
      });
76 76