-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Content] Create new item from one to many field #3203
base: dev
Are you sure you want to change the base?
[Content] Create new item from one to many field #3203
Conversation
…ingle selection when multiselect is disabled
… is not available and conditionally render Copy ZUID menu item
…nhance accessibility with data-cy attributes
…close functionality and conditional rendering
}: CreateNewItemDialogProps) => { | ||
useEffect(() => { | ||
window.addEventListener(CREATE_NEW_ITEM_DIALOG_EVENTS.CLOSE, onClose); | ||
window.addEventListener( |
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.
@finnar-bin are there any alternatives than the custom events and event listener approach. Couldn't we use a Context that can invoke this function?
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.
Yeah I guess that would work. I could just wrap the entire content app with the context.
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.
@agalin920 update to use the context api
Resolves Phase 2: One to One & One to Many Field - Create & Add New Button #2937
Preview
Screencast.from.02-12-2025.01.36.52.PM.webm