Skip to content

DevIndex: Fix 'Show Animations' checkbox binding for Grid Sparklines #9279

@tobiu

Description

@tobiu

The Show Animations checkbox in the DevIndex app was failing to disable the pulse animations in the Grid sparklines.

Root Cause:
The bind: { animateVisuals: ... } config defined in GridContainer's static config was being completely overridden by the bind: { store: ... } config passed when instantiating the grid inside MainContainer.mjs. Because Neo.mjs instance configs shadow static prototype configs, the animateVisuals binding was erased upon instantiation, preventing the grid from receiving state updates from the ViewportStateProvider.

Resolution:

  • Moved the animateVisuals binding directly into the body config of GridContainer.
  • Removed the now-redundant animateVisuals_ config and afterSetAnimateVisuals hook from GridContainer.mjs.
  • Cleaned up unused variables (regexPrefixCy, positions).

Metadata

Metadata

Assignees

Labels

aibugSomething isn't workinggridRelated to the Neo.grid package

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions