On a mobile device, tapping RGB/HSL value fields puts the input cursor rather randomly. When the cursor ends up at the beginning, it is not easy to change the current value.
Solution
The input element has a method .select(), which selects everything in the field.
Problem
On a mobile device, tapping RGB/HSL value fields puts the input cursor rather randomly. When the cursor ends up at the beginning, it is not easy to change the current value.
Solution
The
input
element has a method.select()
, which selects everything in the field.