From 3834e0d3f5460853b15c39a85a6cfe27ba916c03 Mon Sep 17 00:00:00 2001 From: rhorenov Date: Wed, 8 Aug 2018 09:51:49 +0200 Subject: [PATCH] Fix #38: Browser's autocomplete stops the up and down keys Changing the hours and minutes using the up and down keys does not work reliably if the browser's autocomplete functionality is enabled. The autocomplete functionality is not needed anyway in the hours/minutes inputs. Solution: Add attribute autocomplete="off" to hours/minutes inputs. To replicate: - Enter some number(s) into the hours or minutes inputs - Confirm the number(s) (e.g. by chaging the focus) - Try to change the value using keyboard up and down keys - When you reach any of the previously entered values, the browser opens an autocompletion menu and the keyboard arrows no longer work as expected Tested on Chrome 68.0.3440.84 (Windows). --- dist/md-time-picker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/md-time-picker.js b/dist/md-time-picker.js index 9511447..535c5a5 100644 --- a/dist/md-time-picker.js +++ b/dist/md-time-picker.js @@ -70,6 +70,7 @@ '