Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Button text hit test issue #2858

@siromega

Description

@siromega

jsFiddle: http://jsfiddle.net/siromega/6HYvw/2/

Issue: in IE9 and IE7 (though the fiddle doesn't work with IE7, beacuse, well, its IE7), if you click on the button you'll get the click event (hello!), but when you click on the text, the click event doesn't fire. The emitted HTML shows why - the text is a span outside the input element, and the click event is only attached to the button.

<span aria-hidden="true" class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text">Start</span></span>
<input aria-disabled="false" id="mybutton" class="ui-btn-hidden" value="Start" type="button">

This only affects IE it seems. Chrome and FF7 run the event when text is clicked on.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions