Can't fix Cant search on templates from mobile device

Affected version



When I try to perform a search from a mobile device in the templates, a strange error appears.

Steps to reproduce on mobile device:

Open for example, the template name "account_avatar.less"

Go to the menu of the "3 points" (on chrome for android) and click on search.

Search, for example the word "none" and nothing appears.

Now, scroll to the bottom of the template and search again.

Now 3 results appear.



Chris D

XenForo developer
Staff member
Unfortunately this is just how the search in CodeMirror works. On a traditional browser you can activate the native Code Mirror search with Ctrl/Cmd+F.

The reason it behaves like this is because Code Mirror only renders a very small visible portion of the code at a time for performance reasons. If you remove that limitation then unfortunately it would cause major performance issues, preventing you from using it at all.

Generally editing templates via a mobile isn't really recommended.