Skip to content
This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Commit 4a2feba

Browse files
author
FortschrittApps
committed
also filter OPTION event targets
Allow event propagation not only for Select tags but also for its Option children. Without this change options were not selectable in older Firefox versions, rendering all Select elements unusable.
1 parent a3ffb57 commit 4a2feba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/af.desktopBrowsers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
var preventAllButInputs = function(event, target) {
3434
var tag = target.tagName.toUpperCase();
35-
if (tag.indexOf("SELECT") > -1 || tag.indexOf("TEXTAREA") > -1 || tag.indexOf("INPUT") > -1) {
35+
if (tag.indexOf("SELECT") > -1 || tag.indexOf("OPTION") > -1 || tag.indexOf("TEXTAREA") > -1 || tag.indexOf("INPUT") > -1) {
3636
return;
3737
}
3838
preventAll(event);

0 commit comments

Comments
 (0)