Topic: Timepicker doesn't allow 12:00 PM unless you select minutes.
jaimefuhr free asked 4 years ago
*Expected behavior*When the timepicker opens, it defaults to 12:00 AM. If user only wants to change the meridiem to PM, he should not be forced to click on the "minutes" portion of the time in order for the "Done" link to become enabled.
*Actual behavior*If the user does not change the time and simply changes the meridiem to PM, the Done link is disabled. The user must click on the minutes portion for the link to become enabled.
Resources (screenshots, code snippets etc.)
<div class="form-group timepicker" twelvehour="true">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text"><i class="fa fa-clock-o"></i></div>
</div>
<asp:TextBox ID="endTime" runat="server" CssClass="form-control" placeholder="hh:mm am/pm" Width="130px"></asp:TextBox>
</div>
</div>
jaimefuhr free answered 4 years ago
Here is the snippet:
https://mdbootstrap.com/snippets/jquery/jaimefuhr/2455866
- Click on the text box to open the timepicker.
- Do not change the time. Click PM only.
- Done button will grey out/disable.
- Click on the minutes field. Done button will activate.
Tomek Makowski staff commented 4 years ago
Okay, I see it. This is a bug and we are going to repair it in next release. Otherwise, you can use the newest time picker
https://mdbootstrap.com/docs/jquery/forms/time-picker/
Regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.19.1
- Device: Desktop
- Browser: Edge
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Tomek Makowski staff commented 4 years ago
Hi
Could you show me this issue in snippet code editor?
Link to snippet code editor: https://mdbootstrap.com/snippets/
Regards