Skip to content

Focus boolean #2398

Closed Answered by TimAufdemKampe
TimAufdemKampe asked this question in Q&A
May 16, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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 your editableProps approach gave me this idea:

I give a onFocus and onBlur in the editableProps and change there my isFocused state.

SandBox

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@12joan
Comment options

@TimAufdemKampe
Comment options

Answer selected by TimAufdemKampe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants