mdl-textfield not taking ngModel changes into account

前端 未结 3 1239
礼貌的吻别
礼貌的吻别 2021-01-06 14:34

I am facing an issue regarding the mdl-textfield\'s behavior

On the below plnkr, follow the steps:

  1. click on \"groups working\"
  2. cl
3条回答
  •  Happy的楠姐
    2021-01-06 15:08

    working with me. hope this can help you

    function CleanMDL() {
            setTimeout(function () {
                $scope.$apply(function () {
                    var x = document.getElementsByClassName("mdl-js-textfield");
                    var i;
                    for (i = 0; i < x.length; i++) {
                        x[i].MaterialTextfield.checkDirty();
                    }
                })
            }, 100);
        }
    

提交回复
热议问题