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

Commit ca8d9b9

Browse files
author
scottjehl
committed
Merge branch 'select_event_bubbling' of https://github.com/ehynds/jquery-mobile into ehynds-select_event_bubbling
Conflicts: js/jquery.mobile.forms.select.js
1 parent e2eb9e9 commit ca8d9b9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/jquery.mobile.forms.select.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
124124
//button events
125125
button.bind( $.support.touch ? "touchstart" : "click", function(event){
126126
self.open();
127-
return false;
127+
event.preventDefault();
128128
});
129129

130130
//events for list items
@@ -144,14 +144,14 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
144144

145145
//hide custom select
146146
self.close();
147-
return false;
147+
event.preventDefault();
148148
});
149149

150150
//events on "screen" overlay
151-
screen.click(function(){
151+
screen.click(function(event){
152152
self.close();
153-
return false;
154-
});
153+
event.preventDefault();
154+
});
155155
},
156156

157157
_buildList: function(){

0 commit comments

Comments
 (0)