cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
34 stars 13 forks source link

Side menu disappears before can be clicked #4334

Open anikbrazeau opened 1 day ago

anikbrazeau commented 1 day ago

Description

On click, the side action menu next to the card with "Move up", "Move down", "Duplicate", "Delete" shows up briefly and then disappears

Steps to reproduce

  1. Add a repeating set
  2. Add form elements to it
  3. Select the repeating set container
  4. See actions, then see them disappear

Details

Expected behaviour

The menu to show up for each individual question and for the global set?

Screenshots or videos

Private Zenhub Video

timarney commented 1 day ago

This is a general side menu issue outside of repeating sets

Can re-create on staging.

The happens when the focus within state gets lost when clicking in the "Autocomplete is set to: Address line 1 (civic number and street name)" nested html https://github.com/user-attachments/assets/5c57f857-e544-4548-8856-2155c46ed461

Note: I updated the issue title to remove "Repeating sets"