-
Notifications
You must be signed in to change notification settings - Fork 4
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
ENG-4066 fix(portal): create claim combobox search fix #852
ENG-4066 fix(portal): create claim combobox search fix #852
Conversation
ENG-4066 [Bug] Can’t create Claims on mobile due to formatting issues
When trying to select a Predicate or an Object, the search bar opens upwards like depicted in the screenshot attached, preventing you from searching for the Identity you want to compose your claim with. |
return ( | ||
<Popover | ||
open={isObjectPopoverOpen} | ||
onOpenChange={setIsObjectPopoverOpen} | ||
modal={isObjectPopoverOpen} | ||
modal={isMobileView ? false : isObjectPopoverOpen} |
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.
Oh interesting -- my understanding was that modal
prop in Radix's Popover changed how it interacts with background objects
Is this also how they recommend solving the unexpected collision issues we had with the direction it opens?
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.
Yea, apparently when modal is set to true it disregards the placement and other properties. Can't really fully test this until it is on dev since I can't access localhost from my mobile device.
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.
If I remember correctly we had to set it to true so that scrolling worked on desktop. Everything still functions properly on desktop with this. I think that is going to be the main thing to test, scrolling on mobile with this change.
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.
Got it -- approved! Let's keep an eye on that in QA
…ile-due-to-formatting-issues
…ile-due-to-formatting-issues
Affected Packages
Apps
Packages
Tools
Overview
This adds a check if the user is accessing the app from mobile and changes the modal prop on the Popover conditionally. Setting modal to true can cause some weird behavior on mobile. I was only able to test this locally in the dev console, so we will want to double check that it works once this is on staging.
Screen Captures
If applicable, add screenshots or screen captures of your changes.
Declaration