You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The onCancel function just change de value of the variable:
onCancel(event) {
this.toggled = !this.toggled;
}
When I click on the cancel button at the ion-searchbar I got the following error:
4v89pg1l.entry.js:65 Uncaught TypeError: Cannot read property 'blur' of null
at Searchbar.push../node_modules/@ionic/core/dist/esm/es5/build/4v89pg1l.entry.js.Searchbar.cancelSearchbar (4v89pg1l.entry.js:65)
at Searchbar.push../node_modules/@ionic/core/dist/esm/es5/build/4v89pg1l.entry.js.Searchbar.cancelSearchbar (4v89pg1l.entry.js:65)
The line on the code shows this:
this.nativeInput.blur();
Expected Behavior
Should close the search bar normally.
The text was updated successfully, but these errors were encountered:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug
cancelSearchbar event produce an error trying to do a blur to the nativeInput which is null
Steps to Reproduce
I have an ion-searchbar which I just show or hide depends on a variable value.
The onCancel function just change de value of the variable:
When I click on the cancel button at the ion-searchbar I got the following error:
The line on the code shows this:
Expected Behavior
Should close the search bar normally.
The text was updated successfully, but these errors were encountered: