-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
viewMode: 'clock'
defaults to date view if date components are not deactived
#2583
Comments
Doing a little digging around... this seems to be cause, at least in part, by this logic during configuration initialization: tempus-dominus/src/js/tempus-dominus.ts Lines 355 to 364 in b54bb33
In my use case
tempus-dominus/src/js/utilities/calendar-modes.ts Lines 5 to 35 in 3ab219d
So the result of the It doesn't seem like it would make sense to just add |
It seems the configuration initialization process is not at fault/relevant here -- #2584 instead fixes the issue by incorporating a check of the options in the |
This is a bug that I have pending code to fix. |
Ok -- feel free to scrap that PR. Thanks! |
Hi, please check the latest version. Thanks for your PR btw. |
* make viewMode optional (#2551) * introduce a simple overridable function parseInput (#2552) so that you don't have to know all the internal details when overriding this just gets 1 input and can return another Just as formatInput also works (its the opposite) * fixed #2487, #2495 * fixed #2487, #2495 * fix for #2506 * fix for #2549 * fix for #2549 * pub npm * pub npm * package update * * added locale from pr * updated github templates * updated link nav * fixes #2583, #2578 * [IMP] adding support for Arabic locales (#2592) * Add display.theme option to control dark/light mode (#2593) * adding display.theme to control dark vs light mode * removing changes in dist folder per contribution guidelines * fixes #2547 * upstream * fixing bug where side-by-side shows blank clock (#2596) (#2597) * fix clock * fix #2595 * fix #2563 fix #2563 * fix #2599 * fix #2576 * issue templates to forms * fixes #2568 * nuget package * fix spelling and oops * remove commented out code Co-authored-by: Johan Compagner <[email protected]> Co-authored-by: Khaled Said <[email protected]> Co-authored-by: Killian Hale <[email protected]>
I'm hoping to have a picker that supports all the default time and date components but that opens to the
clock
view mode initially. If I set the picker options as simply --the picker opens in the default
calendar
view mode expect that toggles are reversed (i.e., the calendar toggle has a calendar icon and the label is "Select Date" and when I change to the time selector the toggle is a clock icon and the label is "Select Time").The
clock
view mode works as expected if the date components are disabled (though I think this is just the default behavior).The text was updated successfully, but these errors were encountered: