monsieurbiz / SyliusSearchPlugin

A search plugin using Elasticsearch for Sylius
MIT License
45 stars 38 forks source link

Fix/instant enabled option #218

Open seizan8 opened 1 month ago

seizan8 commented 1 month ago

The option for enabling and disabling the instant search currently has no effect at all. In the sciprts template an option instantEnabled is passed with the value true every time. Even if the value was dynamic, the js was not using the variable at all.

I replaced the static "true" with the value from the setting. And then checked it in the js before adding the listener for the instant search. So the instant search is now only enabled it the settings is set to true.