-
Notifications
You must be signed in to change notification settings - Fork 43
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
🐛 fix issue with select menu getting cut by edge of modal #1428
Changes from 3 commits
14dd35b
c7a9b11
da050d4
4a5c462
044401e
7ed9d05
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 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -37,9 +37,11 @@ export const SimpleSelect: React.FC<ISimpleSelectProps> = ({ | |||||||||
...props | ||||||||||
}) => { | ||||||||||
const [isOpen, setIsOpen] = useState(false); | ||||||||||
|
||||||||||
console.log({ ...props }); | ||||||||||
return ( | ||||||||||
<Select | ||||||||||
menuAppendTo="parent" // prevent menu from being clipped by modal edges | ||||||||||
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. Adding this overflow seems to be a much better experience, but not sure if it is the PF friendly way to accomplish this.
Suggested 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. 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. i added a maxHeight of 200 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. How about the overflow? 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. I see the overflow now with the maxHeight set. LGTM other than the console.log |
||||||||||
maxHeight={200} | ||||||||||
placeholderText={placeholderText} | ||||||||||
toggleAriaLabel={toggleAriaLabel} | ||||||||||
isOpen={isOpen} | ||||||||||
|
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.
This guy snuck in. Otherwise LGTM.