W3C home > Mailing lists > Public > www-talk@w3.org > November to December 2013

"display:none" on android browser will prevent "click" event?

From: chun zhang <mrchunzhang@gmail.com>
Date: Wed, 4 Dec 2013 21:26:48 +0800
Message-ID: <CAPd_jdnUD3Yn77W4H9=RUqRSZMgJFydQBfFSuKgpKytDf5DLow@mail.gmail.com>
To: www-talk@w3.org
<!DOCTYPE html>
<script src="
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
<input id="test" type="file" style="display:none;">

Run this code on android browser, click p will never show file dialog.
But if I remove style="display:none;", let the input show, it works.
Received on Wednesday, 4 December 2013 14:05:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:10 UTC