From 840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 20 Jun 2016 13:25:26 +0800 Subject: select all when picker is opened --- src/module/Header.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/module/Header.jsx b/src/module/Header.jsx index 41099cc..a926e98 100644 --- a/src/module/Header.jsx +++ b/src/module/Header.jsx @@ -170,7 +170,7 @@ const Header = React.createClass({ }, selectRange() { - this.refs.input.focus(); + this.refs.input.select(); if (this.props.currentSelectPanel && this.refs.input.value) { let selectionRangeStart = 0; let selectionRangeEnd = 0; -- cgit v1.2.3