Chrome Update 73 - Materialize CSS JS trigger error

前端 未结 8 2987
不思量自难忘°
不思量自难忘° 2021-02-20 02:29

After the latest Chrome Update 73, the date pickers, time pickers and dropdowns for Materialize CSS 0.100.2 isn\'t working anymore, it flickers when you click on it and then dis

相关标签:
8条回答
  • 2021-02-20 03:14

    para timepicker comentar los siguiente en materialize.js

    /** Hide when clicking or tabbing on any element except the clock and input
        $doc.on('click.clockpicker.' + this.id + ' focusin.clockpicker.' + this.id, function (e) {
          var target = $(e.target);
          if (target.closest(self.popover.find('.picker__wrap')).length === 0 && target.closest(self.input).length === 0) {
            self.hide();
          }
        });*/
    
    0 讨论(0)
  • 2021-02-20 03:22

    I had the same problem. Although I am using angular2-materialize, I believe this should work for people using materialize directly.

    The solution that worked for me was to wrap the materialize select input with a div that has a click listener that simply calls event.stopPropagation():

    <div (click)="$event.stopPropagation()">
        <select materialize="material_select" [value]="selectValue" formControlName="someControl">
        // options omitted (not relevant to answer)
        </select>
    </div>
    

    I hope this helps some people.

    0 讨论(0)
提交回复
热议问题