-
Notifications
You must be signed in to change notification settings - Fork 232
List Item Steals Focus After Selection #763
Comments
@dawsonc623 I think what is happening is the In the MDC Web v1 update, we removed all these state properties on the List component, and are now using the MDC Web foundation. This shouldn't be an issue in the future release. I'll leave this open to revisit when we release that component. You can see it in the branch |
@moog16 Ah, alright. It is worth noting that in my example code I do try to circumvent the issue by setting I am not sure if the foundation component handles this, but similar to the discussion on this Dialog issue having |
I actually fixed this in the List PR #776. This should be released with the rest of the MDC Web v1 updates. |
#776 and v0.12.0 was released. This should no longer be an issue. |
While running through potential use cases for a filtered list component I am working on, I found a strange bug. Rather than explain it, I figured showing it would be better:
https://codesandbox.io/s/32788k0p5q
Follow these steps:
You should find once you get "little c" entered "Nine Little Code Bugs" becomes focused, which is in the slot "Three Little Code Bugs" was when it was originally selected. This behaviour persists until the page is refreshed.
I have not dug into why this is happening yet, but once I get a little more time today or tomorrow I will dive into the code and see what I can find. I figured I would submit this in case someone already has an idea of what might be happening or gets to it before I do.
The text was updated successfully, but these errors were encountered: