fix: fix behaviour of openByDefault in drawer when focus changes

This commit is contained in:
Satyajit Sahoo
2020-04-23 20:00:47 +02:00
parent 9c05af50b4
commit b172b51f17

View File

@@ -153,6 +153,10 @@ export default function DrawerRouter({
getStateForRouteFocus(state, key) {
const result = router.getStateForRouteFocus(state, key);
if (openByDefault) {
return openDrawer(result);
}
return closeDrawer(result);
},