Skip to content

[#4708] Redesign TraitConfig for V2 app and styles#4769

Merged
arbron merged 2 commits into
4.2.xfrom
advancement/trait-v2
Jan 17, 2025
Merged

[#4708] Redesign TraitConfig for V2 app and styles#4769
arbron merged 2 commits into
4.2.xfrom
advancement/trait-v2

Conversation

@arbron

@arbron arbron commented Nov 23, 2024

Copy link
Copy Markdown
Collaborator

Converts TraitConfig to ApplicationV2 and the V2 system styles.

Config V2 Traits

Modifies dnd5e-checkbox to not throw input or change events when programatically setting the checked value, because that causes the form's onChange handler to trigger which causes the form to re-render, leading to an infinite loop. This brings dnd5e-checkbox in line with standard HTML checkboxes which only trigger these events on user interaction.

@arbron arbron added ui User interface related features or bugs system: advancement labels Nov 23, 2024
@arbron arbron added this to the D&D5E 4.2.0 milestone Nov 23, 2024
@arbron arbron self-assigned this Nov 23, 2024
@arbron
arbron force-pushed the advancement/size-v2 branch from d71695e to 9c8bc6b Compare January 10, 2025 16:46
@arbron
arbron force-pushed the advancement/trait-v2 branch from 05a6e3e to 406c8a5 Compare January 15, 2025 22:43
@Fyorl
Fyorl force-pushed the advancement/size-v2 branch from 9c8bc6b to 56feb4c Compare January 17, 2025 16:50
@Fyorl
Fyorl force-pushed the advancement/trait-v2 branch from 406c8a5 to f56d6eb Compare January 17, 2025 16:57
@arbron
arbron force-pushed the advancement/size-v2 branch 2 times, most recently from 9c8bc6b to 4a191c7 Compare January 17, 2025 17:32
Base automatically changed from advancement/size-v2 to 4.2.x January 17, 2025 17:33
Converts `TraitConfig` to `ApplicationV2` and the V2 system
styles.

Modifies `dnd5e-checkbox` to not throw `input` or `change` events
when programatically setting the `checked` value, because that
causes the form's `onChange` handler to trigger which causes the
form to re-render, leading to an infinite loop. This brings
`dnd5e-checkbox` in line with standard HTML checkboxes which only
trigger these events on user interaction.
@arbron
arbron force-pushed the advancement/trait-v2 branch from f56d6eb to 7acdd88 Compare January 17, 2025 17:34
@arbron
arbron requested a review from Fyorl January 17, 2025 17:34
Comment thread templates/advancement/trait-config-choices.hbs Outdated
Comment thread templates/advancement/trait-config-choices.hbs Outdated
Comment thread module/applications/advancement/trait-config.mjs
@arbron
arbron requested a review from Fyorl January 17, 2025 18:07
@arbron
arbron merged commit a22281b into 4.2.x Jan 17, 2025
@arbron
arbron deleted the advancement/trait-v2 branch January 17, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

system: advancement ui User interface related features or bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants