Archit Pandey
Archit Pandey
SSolidJS
Created by Archit Pandey on 12/10/2023 in #support
Inputs losing focus on sort
Thanks! That works perfectly!
13 replies
SSolidJS
Created by Archit Pandey on 12/10/2023 in #support
Inputs losing focus on sort
Thanks for the links! I understand the difference between Index and For. Maybe I'll implement the logic to refocus input after sort as that isn't supported by default.
13 replies
SSolidJS
Created by Archit Pandey on 12/10/2023 in #support
Inputs losing focus on sort
Thanks! I tried Index as well, and had the same result as you. The input would stay focused, but it wouldn't move to the correct one after sort. I'm curious why For doesn't keep the input focused? Why is the input recreated on sort? I assumed that the DOM elements would simply be reordered.
13 replies
SSolidJS
Created by Archit Pandey on 12/10/2023 in #support
Inputs losing focus on sort
I'm using a For to render the sortedData. (Added a link to a reproduction to my original post.)
13 replies