Repository navigation
fix: a pluggable widget value's null template is not carried over - #2746
Merged
Merged
Conversation
`create or modify page` turning a Data grid 2 attribute column into a customContent column wrote the column's tooltip null, the property the widget hides for custom content, and canon.CarryUnexpressed put the stored empty ClientTemplate back: null over an empty template is how it recognises Studio Pro's unset screen-reader label. mx check reported CE0463 on the grid. Inside a CustomWidgets$WidgetValue the writer's null is deliberate, so that carry now skips widget values. Fixes #2732 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2732 (upstream mendixlabs#2006).
Problem
create or modify pagereplaced a Data grid 2 attribute column with the same column asShowContentAs: customContent.checkandexecpassed, thenmx checkreported CE0463 on the grid.bson dump --compareagainst the same page built bycreate pageshows one difference: the column'stooltip. Data grid 2 hides it for custom content, andcreate pagewrites it null. The modify kept the emptyForms$ClientTemplatethe attribute column had.Cause:
canon.CarryUnexpressedputs a stored empty ClientTemplate back where the writer writes null. That carry exists for Studio Pro's unset screen-reader label (#1897), where null and empty both mean "no label". Inside a pluggable widget'sCustomWidgets$WidgetValuethey are two different states: the writer chooses null for a property the widget's editorConfig hides, and an empty template for one it shows unset (#574, #931).Fix
That carry skips
CustomWidgets$WidgetValueelements. The screen-reader label carry on built-in widgets is unchanged.Not in this PR
A page already in this state is not repaired by re-running the statement. When the statement describes the same widget, the stored pluggable passes through as stored.
mxcli fix widgetsdoes not reset it either (mx update-widgetsreports the model in sync). That repair belongs with #2507.Evidence
modelsdk/canon/unexpressed_widgetvalue_2732_test.gofailed before the fix ("a real change was elided"). The control, the screen-reader label carry, still elides.Unchanged.make ci-localpassed.Generated by Claude Code