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

date inputfield jumping backup to 1918 #544

Closed
PorreKaj opened this issue Jan 9, 2019 · 5 comments
Closed

date inputfield jumping backup to 1918 #544

PorreKaj opened this issue Jan 9, 2019 · 5 comments
Labels
bug Something isn't working materialize Highlight materialize issues
Milestone

Comments

@PorreKaj
Copy link

PorreKaj commented Jan 9, 2019

Simple Input form:

`New-UDInput -SubmitText "Go" -Title "Select Date range" -Content {

            New-UDInputField -Type date -Name "Startdate" -Placeholder "Start Date (00:00)"
            New-UDInputField -Type date -Name "EndDate" -Placeholder "End Date (23:59)"
        }-Endpoint {
             param($Startdate, $EndDate)
            Show-UDToast -Message "From $Startdate to $EndDate"
    
        }`

If I Select the input fields it displays the current month. If I hit 'Go' the toast displays the values as it should.
If I then select the fields again, it places me in december 1918.

It only happens after hitting' Go'

image

This is on 2.2

@PorreKaj
Copy link
Author

PorreKaj commented Jan 9, 2019

You know, this particular site WASN'T updated to 2.2 (2.1) - updating solved the issue.

@PorreKaj PorreKaj closed this as completed Jan 9, 2019
@PorreKaj PorreKaj reopened this Jan 9, 2019
@PorreKaj
Copy link
Author

PorreKaj commented Jan 9, 2019

It only worked first time, ugh.

@adamdriscoll
Copy link
Member

I see it too. I will see if I can fix this in the 2.2.1 release.

@adamdriscoll adamdriscoll added the bug Something isn't working label Jan 9, 2019
@adamdriscoll
Copy link
Member

This is more involved than a simple fix. Looks like a problem with the materializecss library. We are currently moving to material-ui and will be taking advantage of their controls moving forward: https://material-ui.com/demos/pickers/#complementary-projects

I'll make sure this is addressed there.

@PorreKaj
Copy link
Author

Bugger.
Since it only allows one to select +-50years, it won't let users select anything newer than 1968, unless first using the "Today" Button.

Looking forward to Material-UI :-)

@adamdriscoll adamdriscoll added this to the 3.0.0 milestone Jan 14, 2019
@adamdriscoll adamdriscoll added the materialize Highlight materialize issues label May 13, 2019
@adamdriscoll adamdriscoll modified the milestones: 3.0.0, 2.4 May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working materialize Highlight materialize issues
Projects
None yet
Development

No branches or pull requests

2 participants