Open demhos opened 6 months ago
I've removed the states from Item.tsx and changed the name of the name in reducer to fileIdBeingRenamed for better clarification.
Looks great! One thing I notice is that when I actually test it out, I press F2 when a file is selected and I get the following error:
I'm curious, when you select a file and press F2, does this error not happen for you?
I think the problem is that the text field is not set up yet in the DOM, so it tries to auto-focus it too soon.
This is what I have so far, not sure what else to add to context to make it enter the input box