LearnNewsExamplesServices
Frontmatter
id9056
titleFix: CountryFlag not resetting when value is null
stateClosed
labels
bugairegression
assigneestobiu
createdAtFeb 8, 2026, 9:45 PM
updatedAtFeb 8, 2026, 9:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/9056
authortobiu
commentsCount0
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 8, 2026, 9:46 PM

Fix: CountryFlag not resetting when value is null

Closed v12.0.0 bugairegression
tobiu
tobiu commented on Feb 8, 2026, 9:45 PM

The Neo.component.CountryFlag component has a regression where the flag image is not cleared when the location value is set to null or an empty string. This is particularly noticeable in Neo.grid.column.CountryFlag when recycling rows, causing incorrect flags to persist.

The issue is due to the update logic being encapsulated within an if (value) block in the afterSetLocation method.

Proposed Fix:

  • Move the VDOM update logic outside the if (value) check to ensure the component updates even when the value is cleared.
  • Ensure me.update() is called in all cases.
tobiu added the bug label on Feb 8, 2026, 9:45 PM
tobiu added the ai label on Feb 8, 2026, 9:45 PM
tobiu added the regression label on Feb 8, 2026, 9:45 PM
tobiu assigned to @tobiu on Feb 8, 2026, 9:45 PM
tobiu added parent issue #8930 on Feb 8, 2026, 9:46 PM
tobiu referenced in commit 4107224 - "fix: CountryFlag not resetting when value is null (#9056)" on Feb 8, 2026, 9:46 PM
tobiu closed this issue on Feb 8, 2026, 9:46 PM