为什么我的时间选择器不使用React Bootstrap显示秒数?
我正在使用React-Bootstrap(v2.4)作为我希望用户指定小时,分钟和秒的表格(HH:MM:SS)。请参阅我正在使用的代码:
<Form>
<Form.Group className="mb-3" controlId="timeSelector">
<Form.Label>Test</Form.Label>
<Form.Control type="time" step="1" />
</Form.Group>
</Form>
这是Mac上的Chrome中预期的,但是在iPhone和iPad上,它仅显示Chrome中的HH:MM:MM。同样在Safari上,显示了HH:MM。我已经在使用步骤=“ 1”,但这没有任何区别。
知道如何解决此问题或可以使用哪种替代方法?
I am using react-bootstrap (v2.4) for a form in which I want the user to specify hours, minutes and seconds (hh:mm:ss). See the code I am using below:
<Form>
<Form.Group className="mb-3" controlId="timeSelector">
<Form.Label>Test</Form.Label>
<Form.Control type="time" step="1" />
</Form.Group>
</Form>
This works as expected in Chrome on Mac, but on both iPhone and iPad it only shows hh:mm in Chrome. Also on Safari, on hh:mm is shown. I am already using step="1", but this doesn't make any difference.
Any idea how to fix this or what alternative approach I can use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论