I tried to find dome duplicates of this question, and there are other threads with the same or with similar questions, but none of these threads include an actual solution.
- No, blur() doesn’t work with such links on mobiles
- No, off() and unbind() are not valid options, because I need these items "focusability"
What I’m trying to achieve is:
- A mobile user clicks a list item in a list – the link color changes from white to purple
- As soon as the user restart scrolling, I need this link to lose its active/hovered/touchastarted (etc.) status, and change back to white accordingly.
Is it possible that there’s no way to achieve this incredibly simple manual status update? Because, as far as I see at the moment, it’s possible. Which is just really unbelievable in 2023…
Please correct me, tell me that I’m wrong, and let me know the secret of manually unhover/unfocus/etc… links on mobiles.
2
Answers
Sounds like a CSS issue? Do you have any code that you can share?
I’m going to answer what I think you’re asking, but it’s difficult to know without code…
<a href="somewhere.html">Link</a>
If that is true, try this: