Email or username:

Password:

Forgot your password?
Top-level
Naman

@keithamus What issues are you seeing using dialogs and popovers in React?

4 comments
keithamus

@nmn need to `useEffect()` to use the methods. `ontoggle`, `onbeforetoggle` don't work. I think the latter is fixed in 19 but still now way to call `showPopover` or `showModal` without a hook AFAIK.

Mayank

@keithamus @nmn where would you rather call `showPopover` and `showModal`? it's imperative code

keithamus

@mayank @nmn I dunno, but it’s a framework so shouldn’t it solve that for me rather than expecting me to use the escape hatches?

Naman

@keithamus You can call showPopover or showModal in a regular event handler function. Doesn’t need to be a hook.

Go Up