How to hide drawer upon user click

后端 未结 12 1843
北恋
北恋 2020-12-16 14:43

How do I hide the drawer when the user clicks on an item? Or when a button is clicked?

12条回答
  •  盖世英雄少女心
    2020-12-16 15:10

    For version 1.0.6, you have to remove the before mentioned class from two elements:

    $( '.mdl-layout__drawer, .mdl-layout__obfuscator' ).removeClass( 'is-visible' );
    

提交回复
热议问题