Fix for undefined ref on hot reload on web (#5407)
This commit is contained in:
@@ -48,7 +48,7 @@ export function useComposerKeyboardShortcut() {
|
|||||||
function handler(event: KeyboardEvent) {
|
function handler(event: KeyboardEvent) {
|
||||||
if (shouldIgnore(event)) return
|
if (shouldIgnore(event)) return
|
||||||
if (
|
if (
|
||||||
openDialogs.current.size > 0 ||
|
openDialogs?.current.size > 0 ||
|
||||||
isModalActive ||
|
isModalActive ||
|
||||||
activeLightbox ||
|
activeLightbox ||
|
||||||
isDrawerOpen
|
isDrawerOpen
|
||||||
|
|||||||
Reference in New Issue
Block a user