]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Page input field should follow the readOnly input prop.
authorJesper We <jesper@journeyman.se>
Wed, 21 Feb 2018 09:23:55 +0000 (10:23 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Feb 2018 09:23:55 +0000 (10:23 +0100)
Without this mobile devices will briefly flash a virtual keyboard that then goes away.

src/TimePicker.jsx

index 7659bc721d6630efe74339ecd211171202daad72..cb7593d3c1827d63b60d5dbed18e4d6fb9c0268c 100644 (file)
@@ -289,7 +289,8 @@ export default class Picker extends Component {
             onBlur={onBlur}
             autoFocus={autoFocus}
             onChange={noop}
-          />
+            readOnly={!!inputReadOnly}
+            />
           <span className={`${prefixCls}-icon`}/>
         </span>
       </Trigger>