Skip to content

Conversation

saithsab877
Copy link
Contributor

Problem:

  • 'Confirm' button not enabled after attribute deletion in form.

closes: #2554

Issue ticket number and link:

Evidence:

https://www.loom.com/share/654f6309fbda4647a3904046bfb5d4cf

@saithsab877
Copy link
Contributor Author

Hi @tomsmith8, @Rassl, Please review this PR.


const handleDeleteAttribute = (attributeKey: string) => {
setDeletedAttributes((prev) => [...prev, attributeKey])
setSubmitDisabled(false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have several checks for controlling, submitDisabled status, which is already bad, adding one more is not good, use one of the existing. Basically we need to check if something changed

Copy link
Collaborator

@Rassl Rassl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check out my comment

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.

[Ontology] Delete attribute doesn't trigger the 'Confirm' button

2 participants