getgrav / grav-plugin-simplesearch

Grav SimpleSearch Plugin
https://getgrav.org
MIT License
44 stars 55 forks source link

The minimum number of characters check does not work #190

Open petira opened 4 years ago

petira commented 4 years ago

The form allows you to submit fewer characters than the set minimum in the configuration. This is probably related to this improvement: https://github.com/getgrav/grav-plugin-simplesearch/pull/165.

petira commented 3 years ago

search

Enter works correctly, the problem is only when using the Search button. This is probably related to verifying the data-min value in simplesearch.js.

search

However, the form can be submitted with one character only, although the minimum is 3 characters. The behavior is random, I did not find any rules.