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

StaticDateRangePicker Error #1715

Closed
a-m-dev opened this issue Apr 26, 2020 · 2 comments
Closed

StaticDateRangePicker Error #1715

a-m-dev opened this issue Apr 26, 2020 · 2 comments
Labels
status: incomplete Need more information

Comments

@a-m-dev
Copy link

a-m-dev commented Apr 26, 2020

Hello

i was checking the library and i found this https://v4-0-0-alpha-5.material-ui-pickers.dev/demo/daterangepicker#static-mode

i was wondering why this is written in TypeScript?
if its in alpha version it needs to be used as simply as possible with pure react, right now i cant convert it to pure react and im keep getting this error in my console

Uncaught TypeError: Cannot read property 'keyboardDate' of undefinedblah blah blah

The above error occurred in the <RangePickerWithStateAndWrapper> component:
blah blah blah

Uncaught (in promise) TypeError: Cannot read property 'keyboardDate' of undefined
blah blah blah


please provide a gist of pure javascript for this 😭
and try to show it in pure javascript file not shitty type script 😭 to know how it works in react and then we check that in typescript!

@a-m-dev a-m-dev changed the title StaticDateRangePicker StaticDateRangePicker Error Apr 26, 2020
@dmtrKovalenko
Copy link
Member

Please provide more information and reproduction using codesandbox.

@dmtrKovalenko dmtrKovalenko added the status: incomplete Need more information label Apr 26, 2020
@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 27, 2020

i was wondering why this is written in TypeScript?
please provide a gist of pure javascript for this

@a-m-dev This will be resolved with mui/material-ui#19706.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: incomplete Need more information
Projects
None yet
Development

No branches or pull requests

3 participants