Bug 1446202 - 2. Don't pass pointer events to datetime inputs; r=jchen
authorJim Chen <nchen@mozilla.com>
Mon, 02 Apr 2018 23:26:11 -0400
changeset 776561 9ca671c7ec5bb860d67fdfe2dafdc0a6daef48f9
parent 776560 ae4d46495f5e78721e9cd68dc46e11b13592b875
child 776562 abb14d1d2f0cf6a205b1592301cfd8059614f53b
push id104907
push userbmo:ato@sny.no
push dateTue, 03 Apr 2018 10:28:20 +0000
reviewersjchen
bugs1446202
milestone61.0a1
Bug 1446202 - 2. Don't pass pointer events to datetime inputs; r=jchen Like the way we treat select fields, don't pass pointer events to date/time input fields either. MozReview-Commit-ID: Eucfbu6MizX
mobile/android/themes/geckoview/content.css
--- a/mobile/android/themes/geckoview/content.css
+++ b/mobile/android/themes/geckoview/content.css
@@ -111,18 +111,20 @@ select[size][multiple],
 textarea,
 * > input:not(:-moz-any([type="image"], [type="checkbox"], [type="radio"])) {
   border-style: solid;
   border-color: var(--form_border);
   color: var(--form_text);
   background-color: var(--form_background);
 }
 
-/* Selects are handled by the form helper, see bug 685197 */
-select option, select optgroup {
+/* These elements are handled by the prompt module. */
+select option, select optgroup,
+input[type="date"] div:-moz-native-anonymous.datetime-input-box-wrapper,
+input[type="time"] div:-moz-native-anonymous.datetime-input-box-wrapper {
   pointer-events: none;
 }
 
 select:not([size]):not([multiple]),
 select[size="0"],
 select[size="1"],
 * > input[type="button"],
 * > input[type="submit"],