LearnNewsExamplesServices
Frontmatter
id7146
titleFix Conditional Rendering and Add Tests
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 31, 2025, 4:56 PM
updatedAtJul 31, 2025, 4:58 PM
githubUrlhttps://github.com/neomjs/neo/issues/7146
authortobiu
commentsCount0
parentIssue7130
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 31, 2025, 4:58 PM

Fix Conditional Rendering and Add Tests

Closed v10.3.0 enhancement
tobiu
tobiu commented on Jul 31, 2025, 4:56 PM

Description: Ensured that falsy values (e.g., false, null, undefined) in template interpolations do not render any output, which is the correct and expected behavior for conditional rendering. Added a new test case to test/siesta/tests/functional/HtmlTemplateComponent.mjs to verify this functionality by toggling a conditional element and asserting its presence and absence in the VDOM.

tobiu assigned to @tobiu on Jul 31, 2025, 4:56 PM
tobiu added the enhancement label on Jul 31, 2025, 4:56 PM
tobiu added parent issue #7130 on Jul 31, 2025, 4:56 PM
tobiu referenced in commit a992980 - "Fix Conditional Rendering and Add Tests on Jul 31, 2025, 4:57 PM
tobiu closed this issue on Jul 31, 2025, 4:58 PM