From b6a1d52b3761c9dce5e68bbac46cc14e9996231e Mon Sep 17 00:00:00 2001 From: Jesper We Date: Wed, 21 Feb 2018 10:23:55 +0100 Subject: Page input field should follow the readOnly input prop. Without this mobile devices will briefly flash a virtual keyboard that then goes away. --- src/TimePicker.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { onBlur={onBlur} autoFocus={autoFocus} onChange={noop} - /> + readOnly={!!inputReadOnly} + /> -- cgit v1.2.3 From f7ac9a8acfe3181a4fe28b72c2a9f75f3f5e0c09 Mon Sep 17 00:00:00 2001 From: Jesper We Date: Thu, 22 Feb 2018 09:38:49 +0100 Subject: Page input field should follow the readOnly input prop. --- src/TimePicker.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index cb7593d..e330b68 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx @@ -255,7 +255,7 @@ export default class Picker extends Component { const { prefixCls, placeholder, placement, align, disabled, transitionName, style, className, getPopupContainer, name, autoComplete, - onFocus, onBlur, autoFocus, + onFocus, onBlur, autoFocus, inputReadOnly } = this.props; const { open, value } = this.state; const popupClassName = this.getPopupClassName(); -- cgit v1.2.3 From 543a521101e7492456cdf1522fbb2f4d78355a65 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Fri, 23 Feb 2018 11:22:38 +0800 Subject: Fix lint --- src/TimePicker.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index e330b68..a37fec2 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx @@ -255,7 +255,7 @@ export default class Picker extends Component { const { prefixCls, placeholder, placement, align, disabled, transitionName, style, className, getPopupContainer, name, autoComplete, - onFocus, onBlur, autoFocus, inputReadOnly + onFocus, onBlur, autoFocus, inputReadOnly, } = this.props; const { open, value } = this.state; const popupClassName = this.getPopupClassName(); @@ -290,7 +290,7 @@ export default class Picker extends Component { autoFocus={autoFocus} onChange={noop} readOnly={!!inputReadOnly} - /> + /> -- cgit v1.2.3