Open fabiospampinato opened 1 year ago
I tried using windowDidFocus
as a workaround, but for some reason it seems to only be fired once every time a modal is opened, but then it's not fired anymore even if other windows do get the focus.
Makes sense!
I'm writing a little spotlight-like search, and I'd like to close it automatically when it loses focus, but that doesn't seem exactly implementable today. So maybe input modals should have
onFocus
andonBlur
callbacks.