简体   繁体   中英

bottom sheet not closing on outside click in angular 6

I am using angular 6 material and I have implemented the bottom sheet in my code. I have use the code given on the material website. I have import all the necessary modules.

Problem: bottom sheet not closing on outside click and also not getting a transparent background.

enter image description here

尝试删除禁用关闭,我在 stackbliz 中测试了您的代码并且它有效,控制台中有任何错误吗?

I was having the same issue . I fixed it by changing the value of hasBackdrop to true in module.ts In documentation , it is set to false . Maybe this will fix it .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM