nunocoracao / blowfish

Personal Website & Blog Theme for Hugo
https://blowfish.page
MIT License
1.53k stars 421 forks source link

[Bug Report] Comment system cannot get a new line because of PreventDefault behavior #1682

Closed panjinbo closed 2 months ago

panjinbo commented 3 months ago

Describe the bug I do not know whether this is expected by design or not.

https://github.com/nunocoracao/blowfish/blob/main/assets/js/search.js#L77

search.js L77 it prevent default if the search box is not open.

However this would prevent comment text box using "enter" to have a new line.

I have duplicated that file in my project and removed L77 and now the comment can have a new line

panjinbo commented 3 months ago

https://github.com/nunocoracao/blowfish/pull/1693 related pull request