djibe / material

Material Design 2 for Bootstrap 4 (active fork of Daemonite Material)
https://djibe.github.io/material/
MIT License
68 stars 11 forks source link

Persistent navdrawer disables input field #13

Open tbuyle opened 4 years ago

tbuyle commented 4 years ago

I noticed that when a pesistent navdrawer is opened, input fields outside of the navdrawer are "disabled".

Actually they are not disabled but you can't focus on them - thus you can use them.

This seems to be linked to the _enforceFocus in nav-drawer.js (line 151) altough I am not sure sure what its meant to do. I think this is inherited from bootstrap modal code.

As a workaround, one can use $(document).off('focusin.md.navdrawer') to avoid this effect. But I think it shouldn't be necessary to do that when using a persistent navdrawer (or other version without backdrop)