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 411424 9ca671c7ec5bb860d67fdfe2dafdc0a6daef48f9
parent 411423 ae4d46495f5e78721e9cd68dc46e11b13592b875
child 411425 abb14d1d2f0cf6a205b1592301cfd8059614f53b
push id101651
push useraiakab@mozilla.com
push dateTue, 03 Apr 2018 09:42:02 +0000
treeherdermozilla-inbound@99a953f1823f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1446202
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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"],