Repository navigation
enhancement: add 2 improvements to local search - #1618
Conversation
|
@uchuhimo need to set auto to default trigger. |
|
@uchuhimo nice and Good Job! |
|
@ivan-nginx I'm a little confused. I cannot find this commit on master. I check the related issue, I find it is pushed into liszd/hexo-theme-next and habren/hexo-theme-next, but not iissnan/hexo-theme-next. What does it means? Is it a feature that will add to master in future? Do I miss anything? |
|
This was add by iissnan (esc key search box). I don't know why u cannot find it, try to this link (Feature: Close Search Popup by pressing ESC key. #1467).
How it may be? Commit on master, i can make screens. Also, try to follow @uchuhimo also, try to other OS or virtual box or ask for friends to check this link with this commit. The branch is always master. |
|
@ivan-nginx I have tested it. Esc key will hide search panel, but never clean the search input and search result. Is it what you observe? |
|
@uchuhimo yes, it is. I don't use this Esc key, but i remember what it was added and worked and for now it not worked. I think, need to add Esc key to your event listener: It's 43, if i right remebmer. |
|
@ivan-nginx I have fixed it, check #1621 |
|
@uchuhimo hi!
|
Both of these attributes are introduced in 27eaf46 by @Acris . I don't know the best practice to handle such a browser compatibility problem. Should I delete them? Or just leave them there because browser will ignore them if not support them? Any idea? @ivan-nginx @Acris |
|
@uchuhimo this attributs need in searchbox? For what need |
|
@ivan-nginx Both of these attributes are set to false, so I guess they are not needed. But I want to know why @Acris introduces them before reaching a conclusion. |
I add a loading animation, please check #1633 |
|
@Acris what u say about bugs in W3? |
|
Hi, this two attributes is only for mobile users, you can find more details on MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input |
|
@Acris and? Errors in W3 still present. Don't care about it? Need to do something, what u think? |
|
Yes, because |
|
@Acris ignore? I think we cannot ignor any errors. Acris, u not ignore 0.5 pixels in scroll to top, remeber it?) And now u offer to ignore W3 global errors? I dont't belive in this. Need to fix it by anyway. |
|
Well, I'll fix it when I have time (maybe tomorrow). |
|
@Acris ok ok, do not need hurry. But not need ignore this errors too. This is global errors wich are do affect on SEO. And SEO is holy. ;) Also, can u reg in gitter too? This cool chat and may resolve any problems very fast there. |
|
@ivan-nginx I've fixed it. |
|
Thank you! |
|
@ivan-nginx Are u updated latest code? |

Improvements:
local_search.trigger. If set tomanual, Search will be triggered by pressing enter key or search button; If set toauto, Search will be triggered by changing input (It's the default behavior, but suffer from lagging when containing many posts in site).