List styling css :focus doesn't work on each items of the list


I’m trying to apply a style when focusing on an item in a list

Code Snippet (
The background is working on hover, but the focus is working only on the first item of the list.
I’m trying to have the focus (and the good background color) on the selected item on the list.
Do you have any ideas ?

Thank you very much


:focus selector is not reliable in webix components.
try to use webix_selected class instead.
check this Code Snippet

Hi intregal,

Ok I’ve got it !
Thank you for your help, your workaround works perfectly.