Skip to content

fix(ui): slider editable input ignores debounce bug (#8677)#8682

Merged
Light2Dark merged 4 commits intomarimo-team:mainfrom
pranay0703:fix/-8677-slider-debounce-input
Mar 19, 2026
Merged

fix(ui): slider editable input ignores debounce bug (#8677)#8682
Light2Dark merged 4 commits intomarimo-team:mainfrom
pranay0703:fix/-8677-slider-debounce-input

Conversation

@pranay0703
Copy link
Copy Markdown
Contributor

When debounce=True and include_input=True are set on a slider, editing the numeric input does not trigger cell execution. This fixes the issue by forcing the NumberField's onChange to immediately setValue regardless of if the parent slider is configured with debounce, since numeric input edit events are explicitly requested by the user.

Fixes #8677

When  and  are set on a slider, editing the numeric input does not trigger cell execution. This fixes the issue by forcing the NumberField's onChange to immediately setValue regardless of if the parent slider is configured with debounce, since numeric input edit events are explicitly requested by the user.

Fixes marimo-team#8677
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Mar 14, 2026 9:26pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 13, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@pranay0703
Copy link
Copy Markdown
Contributor Author

I have read the contribution rules and verified that all requirements are met: frontend linting and typechecks passed, UI tests were added, and all tests run successfully.

I have read the CLA Document and I hereby sign the CLA

@pranay0703
Copy link
Copy Markdown
Contributor Author

recheck

@pranay0703
Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@pranay0703
Copy link
Copy Markdown
Contributor Author

recheck

Comment on lines +11 to +15
class ResizeObserver {
observe() {}
unobserve() {}
disconnect() {}
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recently we have used SetupMocks.resizeObserver(). Can we do the same here.

@pranay0703
Copy link
Copy Markdown
Contributor Author

test: use SetupMocks for ResizeObserver in SliderPlugin test

  • Replaces the manual ResizeObserver mock with SetupMocks.resizeObserver() to align with repo conventions.
  • Fixes minor typing issues in the createProps setup for the slider plugins test.
  • Adds missing expect assertion to fix vitest/expect-expect eslint warning.

Replaces the manual ResizeObserver mock with SetupMocks.resizeObserver() to align with repo conventions.

Fixes minor typing issues in the createProps setup for the slider plugins test.

Adds missing expect assertion to fix vitest/expect-expect eslint warning.
@Light2Dark Light2Dark merged commit 791f228 into marimo-team:main Mar 19, 2026
25 of 26 checks passed
@github-actions
Copy link
Copy Markdown

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.21.2-dev13

axsseldz pushed a commit to axsseldz/marimo that referenced this pull request Mar 19, 2026
marimo-team#8682)

When `debounce=True` and `include_input=True` are set on a slider,
editing the numeric input does not trigger cell execution. This fixes
the issue by forcing the NumberField's onChange to immediately setValue
regardless of if the parent slider is configured with debounce, since
numeric input edit events are explicitly requested by the user.

Fixes marimo-team#8677

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slider debounce prevents value updates when using editable input

2 participants