-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[Popper][base] Drop component prop #37060
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
Changes from all commits
648800e
b832348
9bdb1cc
d36f683
f7e6e28
199b9e0
f5f11e4
36f80a5
bbd0702
f22f147
dd984da
68c3f82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,7 +163,9 @@ describe('useSlot', () => { | |
anchorEl: () => document.createElement('div'), | ||
}, | ||
internalForwardedProps: { | ||
component: ItemRoot, | ||
slots: { | ||
root: ItemRoot, | ||
}, | ||
}, | ||
}); | ||
return <SlotRoot {...rootProps} />; | ||
|
@@ -237,7 +239,9 @@ describe('useSlot', () => { | |
anchorEl: () => document.createElement('div'), | ||
}, | ||
internalForwardedProps: { | ||
component: ItemListbox, | ||
slots: { | ||
root: ItemListbox, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are you doing this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that is a test that use base |
||
}, | ||
}, | ||
}); | ||
const [SlotOption, optionProps] = useSlot('option', { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaldudak this change seems to make

yarn proptypes
change the proptypes ofMenu.tsx
andSelect.tsx
(both usePopper
as defaultRoot
component) like in the picture. Any idea what might causes this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add
/* @typescript-to-proptypes-ignore */
before runningyarn proptypes
to prevent that changeUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
ps: would be cool if you can add this PR to #36679
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, ignore my comment above, that's not how we should handle it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you found another way to deal with the problem?