We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is an issue with the widget when sometimes it cannot process the following code:
if( attributeValue.toLowerCase().lastIndexOf(self._currentSearchTerm.toLowerCase(), 0) === 0 ){ filteredObjs.push(self._localObjectCache[i]);
It will show an error in the browser console:
mxui.js?638440481067909697:64 [Client] TypeError: Cannot read properties of null (reading 'toLowerCase') at request (widgets.js?638440481067909697:8080:48)
Issue also discussed here: https://community.mendix.com/link/space/widgets/questions/93784
a fix would be to wrap the following code in an if check if(attributeValue !== null)
if(attributeValue !== null)
if(self.cacheSearchMethod == "startswith"){ // startsWith not supported in IE //if( attributeValue.toLowerCase().startsWith(self._currentSearchTerm.toLowerCase()) ){ if( attributeValue.toLowerCase().lastIndexOf(self._currentSearchTerm.toLowerCase(), 0) === 0 ){ filteredObjs.push(self._localObjectCache[i]); } } else{ if( attributeValue.toLowerCase().indexOf(self._currentSearchTerm.toLowerCase()) >= 0 ){ filteredObjs.push(self._localObjectCache[i]); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is an issue with the widget when sometimes it cannot process the following code:
It will show an error in the browser console:
Issue also discussed here: https://community.mendix.com/link/space/widgets/questions/93784
a fix would be to wrap the following code in an if check
if(attributeValue !== null)
The text was updated successfully, but these errors were encountered: