Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Sidebar "currentItem" selection is too fuzzy #11

Open
H12 opened this issue Feb 11, 2019 · 0 comments
Open

Sidebar "currentItem" selection is too fuzzy #11

H12 opened this issue Feb 11, 2019 · 0 comments

Comments

@H12
Copy link

H12 commented Feb 11, 2019

If you have multiple files with similar names (e.g. Model and AnotherModel), the data-name selector here:

var $currentItem = $nav.find('.item[data-name*="' + filename + '"]:eq(0)');

...will incorrectly set $currentItem to be AnotherModel when you click on Model.

I think using data-name= instead of data-name*= will fix this, but I'm unsure whether that could cause other issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant