It works as expected on desktop browser. The reset button shows next to the input when the input is not empty.
However, if I run the app on my device. I get the message from the console:
D/CordovaLog( 3469): file:///android_asset/www/bower_components/ionic/js/ionic.js: Line 6904 : Uncaught TypeError: Object # has no method ‘getBoundClientRect’
I guess I did something wrong or it may be a bug. So how to do it right?
Hm, trying this right now so I’ll post the results when I’m done testing. But what version of ionic are you using? Also what version of android are you testing on?
So I tested with a 4.4 device and beta 8 and couldn’t get an error message. Use the same code you provided too. Not too sure what could be causing this.