[Dojo-interest] dojox/mobile/SearchBox Clear Button (x) fails in iPad/iOS (#16672)

Adrian Vasiliu adrian.vasiliu3+dojo at gmail.com
Wed Apr 10 05:28:11 EDT 2013


Hi,
Thanks! At a quick test on iOS6 it does the trick just fine. Will follow-up
with you privately about how to contribute it.
Adrian



2013/4/10 frankf <frankfdojo at gmail.com>

> For those searching, below is my workaround until
> http://bugs.dojotoolkit.org/ticket/16672 is fixed.
>
> The Problem:  On the iPad, using dojox/mobile/SearchBox, clicking on the
> SearchBox activates the keyboard, at which point you may enter search text.
> When the SearchBox contains text, an "x" in a circle symbol is displayed at
> the far right of the SearchBox.  When clicked, the (x) should clear the
> text
> and emulate an Enter key to force a new search based on no text, e.g.,
> display all entries.  The latter action does not occur on iPad/iOS devices
> (touching the (x) causes no action).
>
> Temporary Workaround:  The workaround below is crude: 1) attach a
> "touchstart" event to the SearchBox, 2) check if the SearchBox contains
> text, 3) determine if the "touch" was in the right-most 20px of the
> SearchBox where the (x) is, 4) clear the SearchBox text and emulate the
> Enter key.
>
> Lots of ways to accomplish this.  Here's one:
>
> dojo 1.9.0b2
>
>
>
>
>
> --
> View this message in context:
> http://dojo-toolkit.33424.n3.nabble.com/dojox-mobile-SearchBox-Clear-Button-x-fails-in-iPad-iOS-16672-tp3995707.html
> Sent from the Dojo Toolkit mailing list archive at Nabble.com.
> ________________________________________________________
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
>
> Dojo-interest at mail.dojotoolkit.org
> To unsubscribe, visit:
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20130410/68974b70/attachment.htm 


More information about the Dojo-interest mailing list