Skip to content
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

Open
wants to merge 79 commits into
base: dev
Choose a base branch
from

Conversation

finnar-bin
Copy link
Contributor

@finnar-bin finnar-bin commented Feb 12, 2025

Preview

Screencast.from.02-12-2025.01.36.52.PM.webm

…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
@finnar-bin finnar-bin added enhancement Improvement to an existing feature ready PR is complete and ready for deployment labels Feb 12, 2025
@finnar-bin finnar-bin requested a review from agalin920 February 12, 2025 06:38
@finnar-bin finnar-bin self-assigned this Feb 12, 2025
}: CreateNewItemDialogProps) => {
useEffect(() => {
window.addEventListener(CREATE_NEW_ITEM_DIALOG_EVENTS.CLOSE, onClose);
window.addEventListener(
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

@finnar-bin finnar-bin requested a review from agalin920 February 19, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Phase 2: One to One & One to Many Field - Create & Add New Button
2 participants