Focus boolean #2398
Focus boolean
#2398
-
Is there any way to get the focused state from the Editor? |
Beta Was this translation helpful? Give feedback.
Answered by
TimAufdemKampe
May 17, 2023
Replies: 1 comment 2 replies
-
If you want to use CSS, If you want to use Tailwind CSS, If you need to use JS and you have a reference to the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey thanks for your quick reply. I actually wanted to do it with JS / React, unfortunately the
.matches
only worked for focus and not for blur. But youreditableProps
approach gave me this idea:I give a
onFocus
andonBlur
in theeditableProps
and change there myisFocused
state.SandBox