Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing existing time value ignores minutes and only displays hours #129

Open
cliveportman opened this issue Sep 19, 2018 · 1 comment
Open

Comments

@cliveportman
Copy link

cliveportman commented Sep 19, 2018

The following works fine apart from the initial displayed value within the time field being 10:00 when it should be 10:25. Turning on AM/PM makes no difference. Is this a known issue or something only I'm experiencing?

<div class="ui calendar time">
  <div class="ui input left icon">
    <i class="calendar icon"></i>
    <input type="text" class="calendar-text" value="10:25" placeholder="Select time">
  </div>
</div>
<input type="hidden" name="fieldname" class="calendar-time" value="10:25">

$('.ui.calendar.time').calendar({
   type: 'time',
   ampm: false
 });
@lubber-de
Copy link

lubber-de commented Sep 6, 2020

The Calendar component was merged into https://github.com/fomantic/Fomantic-UI and is further maintained there.
Using Fomantic-UI and your code, i cannot reproduce your issue anymore. 10:25 is displayed on initialization just fine
See https://jsfiddle.net/lubber/neqgy3x6/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants