Skip to content

Always show the New Attribute button in EMLAttributesView #2667

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

robyngit
Copy link
Member

The button is now a UI element only and is never removed from the view. It is no longer connected to a new blank model in the collection, which was leading to unexpected behaviour.

Our previous pattern of using a blank model to represent the "add new attribute" button was a little too complex and was leading to unexpected behaviours, like the button not showing up in some cases when the associated model was removed.

The button is now always visible, sticking to the bottom of the list container when there are many attributes.

Fixes #799 and #1722

The button is now a UI element only and is never removed. It is no longer connected to a new blank model in the collection, which was leading to unexpected behaviour.
The button is now always visible, stickign to the bottom of the list container when there are many attributes.

Fixes #799, #1722, #1216
@robyngit robyngit linked an issue Apr 16, 2025 that may be closed by this pull request
@robyngit robyngit requested a review from rushirajnenuji April 16, 2025 17:17
@robyngit robyngit linked an issue Apr 16, 2025 that may be closed by this pull request
Ensure that the "Add new attribute" button remains visible even when the
user has autofilled the attributes. Re-rendering the attributes previously removed
the button from the view without re-rendering it.

Issue #799 and #1722
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to add additional attributes Can not add attributes after 3
1 participant