[UIKIT2] UserPicker with a Popup doesn't show up properly

We’re facing issues with embedding a UserPicker inside a Popup.

On the first rendering it doesn’t anchors properly.

This seems to only occur when a UserPicker is added to the tree of components. Without it, other components renders fine.

Basic reproducing example :

const App = () => {
  const [isOpen, setIsOpen] = useState(false)
  return (
    <>
      <Text>Popup with UserPicker</Text>
      <Popup
        content={() => {
          return (
            <UserPicker
              label='Assignee'
              placeholder='Select a user'
              name='user'
              description='The selected user will be assigned to this task'
              onChange={(user) => console.log(user)}
            />
          )
        }}
        isOpen={isOpen}
        trigger={() => (
          <Button
            appearance='primary'
            isSelected={isOpen}
            onClick={() => setIsOpen(!isOpen)}
          >
            {isOpen ? 'Close' : 'Open'}
          </Button>
        )}
      />
    </>
  )
}

ForgeReconciler.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
)

Hey @GuillaumeBero
Thanks for reporting the bug - I just got in touch with the UI kit team and they’re aware of the issue and are working on releasing a fix.
I’ll comment here when it’s out.
Cheers!
Mel

1 Like

@GuillaumeBero i just tested my cloud instance and it looks like this is now fixed in my site. Will you mark this as solved if it’s working for you also?

Cheers!
Mel

@mpaisley doesn’t look like it here yet.
Is there any version or something I could check ?

I don’t see any change on the ticket https://jira.atlassian.com/browse/ECO-591

Hi @mpaisley, do you have any news to share ?

Can you confirm this is working on your end ?