Then attempt to search, you will receive the following JS error:
vendor.js:11692 Uncaught TypeError: Cannot read property 'sort' of undefined
at Object.search (vendor.js:11692)
at VueComponent.onInput (vendor.js:11532)
at boundFn (vendor.js:93445)
at HTMLInputElement.invoker (vendor.js:95018)
There is no reason to require the developer to have the empty :include just to get searching working. So this fix will break the checks apart for previousInclude and previousExclude to resolve this issue.
The current implementation requires you to always define
:include
AND:exclude
for search to work. For example, if you do the following:Then attempt to search, you will receive the following JS error:
By doing the following, the error goes away:
There is no reason to require the developer to have the empty
:include
just to get searching working. So this fix will break the checks apart forpreviousInclude
andpreviousExclude
to resolve this issue.