-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[docs] Add a live demo with material-ui-pickers #13659
Comments
@htran78 I think this is browser issue and not material-ui issue. As far as I know material-ui does not handle dates in any way. Even in documentation it says that it's a native picker. |
I would recommend going with https://github.com/dmtrKovalenko/material-ui-pickers by @dmtrKovalenko. |
I am on it! |
@oliviertassinari I have started on integrating material-ui-pickers example to the docs. And figured out the unexpected trouble :(
For some reason material-ui docs are not resolving |
@dmtrKovalenko I can see that we are a peer dependency, which is great. It's the first time we have this configuration. The different options I can think of:
|
@oliviertassinari are you talking about |
@dmtrKovalenko I was able to have something working: The code needs to be cleaned, I have been exploring all sorts of possible paths: oliviertassinari@c4fa588 |
I gave this statement another thought, maybe it's the opposite, using the source code directly might be an issue, especially if we start introducing breaking changes, in this case, relying on the version published on npm would be preferable. @eps1lon What do you prefer? |
@oliviertassinari its a good point. But then all peer dependent packages may need different version of |
It's true, we can work around this problem by using the most recent version of the dependent package that matches the installed version of Material-UI, moving everything as a single bloc. |
@oliviertassinari that can be a tricky problem. Some packages can be not up-to-date much longer time than other packages. I suggest not publish every peer dependent package on demo. |
If there any breaking changes introduced in @next which can affect material-ui-pickers work. You can ping me in the material-ui-pickers repo or here and I will make @next version with support of breaking change. That will also make update to the new material-ui version painless for pickers users, `cause there will be much less time needs for updating pickers to the new version. |
That's what semver is for. If we don't introduce breaking changes in minor version upgrades then using something like I don't understand what you mean by "using the source code directly". If they use alpha releases or builds from @dmtrKovalenko I can keep an eye on material-ui-pickers compat but I would also suggest you subscribe to #13663 and let us know if something will cause much churn for you. Hopefully we can then work on a better solution. You should be safe most of the time tohugh if you fixed all deprecation warnings. |
@eps1lon The issue is with how we should handle |
The same version our docs is using. It kind of adds another regression test for us which is great. Since material-ui-pickers uses The issue here is that the path mappings are not working. I don't understand how they are working anyway right now in the docs:
I would much rather fix this by putting the resolve mechanism into a single place than adding add dependency to our build process that is in 0.0.x. |
In this case, I think that we are good to move forward. |
babel transpilation and (webpack) resolve alias are two different things though. |
We don't use webpack alias, we use Babel alias. |
believe that this is not a duplicate.
Expected Behavior 🤔
Should be show correct date when scroll to selecting date
Current Behavior 😯
Show invalid date
Steps to Reproduce 🕹
Thank you.
The text was updated successfully, but these errors were encountered: