Skip to content

Conversation

@sandrina-p
Copy link
Collaborator

@sandrina-p sandrina-p commented Nov 4, 2023

Description

Fixes #56

How? When the fields get updated after parsing each conditional, compare the conditional attrs to the previous base field attrs. If an attr in the prev base is no longer present in the conditional, then remove it.

@sandrina-p sandrina-p requested a review from dilvane November 4, 2023 09:54
@sandrina-p sandrina-p requested a review from brennj November 6, 2023 09:27
Copy link
Collaborator

@brennj brennj left a comment

Choose a reason for hiding this comment

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

Just one small thing needs to be changed and its only a lint error. Otherwise, tests are fantastic and I'm so happy we have this now.

@sandrina-p sandrina-p force-pushed the rmt-58-jsf-conditionals-keywords-are-redundant-eg-readonly-false branch from 2427ac9 to 9fb57cf Compare November 6, 2023 19:35
Copy link
Collaborator

@dilvane dilvane left a comment

Choose a reason for hiding this comment

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

This is a fantastic fix! Thanks for this, until now, we were using the "workaround" to override the attribute like you showed in the playground, but with the "const" the need for this fix is more visible!

@sandrina-p sandrina-p merged commit 8bac714 into main Nov 7, 2023
@sandrina-p sandrina-p deleted the rmt-58-jsf-conditionals-keywords-are-redundant-eg-readonly-false branch November 7, 2023 09:28
@sandrina-p
Copy link
Collaborator Author

@remoteoss/[email protected] released 📦

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.

Conditionals attributes are not removed after the condition is unmatched

4 participants