[TECHNICAL-SUPPORT] LPS-33071 Manually entered values as Custom Ranges can cause ArrayIndexOutOfBoundsException in Search Portlet Modified facet

Hey Iliyan,

I have modified the code to work properly based on our discussion.

Now, it is aware of which field fired 'errorField' or 'validField' event and we can change the corresponding variable accordingly.

Form submitting (searchButton) is enabled, only when both fields are valid.

I have also added "disabled" attribute to "searchButton", to disable or enable it on server side before rendering the page.

Please, review my changes.

Thanks,
Tibor