-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[MenuItem] Add buttonRef (and other button props) type #14772
Conversation
No bundle size changes comparing a74b020...1d4c59c |
@eps1lon I added the demo |
@eps1lon Hi, what are the next steps to make this PR mergeable ? |
There are still some unaddressed issues which don't look quite right (using ButtonBase over ListItem). I'm not sure if this is an issue with the new approach we're using or if there exists a better solution. In any case: You could help by making the build pass. |
It's kinda blocking for typescript users since this code does not compile.
You say buttonRef is deprecated, I didn't know. What is the alternative ?
Does this do the same thing ? I dont consider the use of And there is something wrong with the CI for typescript files
Removing propTypes, adding // @ts-ignore, ... should be correct. Anyway, thanks for taking time for me. |
You can always |
Sure ! But I think it has to be fixed before the release version. I'm curious... You say buttonRef is deprecated, I didn't know. What is the alternative ?
|
@eps1lon Hi. For the MenuItem typing partFor more clarity, I think it's better having MenuItem as an
For the ListItem typing partFrom source code
So tests should be
And not HTMLButtonElement ButtonBase.d.tsThe props formattedTSDemos.jsFix issue
Babel plugin unwrap createStylesUnwrap createStyles from Demo of ReactSelect as
|
packages/babel-plugin-unwrap-createStyles/src/unwrapCreateStyles.js
Outdated
Show resolved
Hide resolved
@oliviertassinari I'll be happy to have your review |
@VincentLanglet The alternative will be the |
Since ListItem and MenuItem can have href, it's ExtendButtonBase we have to use.
|
@VincentLanglet My main concern resolved around which is why I insisted on using the root component approach: 1d4c59c Ideally I would just forward to |
@eps1lon The changes you made seems good to me. |
I tried to fix this issue #14769