aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJesper We <jesper@journeyman.se>2018-02-21 10:23:55 +0100
committerGitHub <noreply@github.com>2018-02-21 10:23:55 +0100
commitb6a1d52b3761c9dce5e68bbac46cc14e9996231e (patch)
treedc810280bd41038b31c8ff4d8548ba440d785f46 /src
parentd408a2b14c21e360dfcea2fc59810ec0fe4d3eee (diff)
downloadtime-picker-b6a1d52b3761c9dce5e68bbac46cc14e9996231e.tar.gz
time-picker-b6a1d52b3761c9dce5e68bbac46cc14e9996231e.tar.zst
time-picker-b6a1d52b3761c9dce5e68bbac46cc14e9996231e.zip
Page input field should follow the readOnly input prop.
Without this mobile devices will briefly flash a virtual keyboard that then goes away.
Diffstat (limited to 'src')
-rw-r--r--src/TimePicker.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index 7659bc7..cb7593d 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -289,7 +289,8 @@ export default class Picker extends Component {
289 onBlur={onBlur} 289 onBlur={onBlur}
290 autoFocus={autoFocus} 290 autoFocus={autoFocus}
291 onChange={noop} 291 onChange={noop}
292 /> 292 readOnly={!!inputReadOnly}
293 />
293 <span className={`${prefixCls}-icon`}/> 294 <span className={`${prefixCls}-icon`}/>
294 </span> 295 </span>
295 </Trigger> 296 </Trigger>