Index: Source/WebCore/Resources/pagepopups/suggestionPicker.js |
=================================================================== |
--- Source/WebCore/Resources/pagepopups/suggestionPicker.js (revision 133256) |
+++ Source/WebCore/Resources/pagepopups/suggestionPicker.js (working copy) |
@@ -190,11 +190,16 @@ |
if (typeof entry.dataset.value !== "undefined") { |
this.submitValue(entry.dataset.value); |
} else if (entry.dataset.action === SuggestionPicker.ActionNames.OpenCalendarPicker) { |
+ window.addEventListener("didHide", SuggestionPicker._handleWindowDidHide, false); |
hideWindow(); |
- setTimeout(openCalendarPicker, 0); |
} |
}; |
+SuggestionPicker._handleWindowDidHide = function() { |
+ openCalendarPicker(); |
+ window.removeEventListener("didHide", SuggestionPicker._handleWindowDidHide); |
+}; |
+ |
/** |
* @param {!Event} event |
*/ |