Repository navigation
Fix _template leak in layout rangeslider options - #8229
Closed
abdulhamid999 wants to merge 3 commits into
Closed
abdulhamid999 wants to merge 3 commits into
abdulhamid999 wants to merge 3 commits into
Conversation
abdulhamid999
added a commit
to abdulhamid999/open-source-contributions
that referenced
this pull request
Dec 4, 2026
Contributor
|
I'm closing this PR because it isn't following our contribution process. Every new PR needs to be reviewed by a human before posting. |
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.
Description
Remove internal _template property before copying full-layout rangeslider axis options into user layout. In doAutoRange, �nchorAx.rangeslider[ax._name] holds _template from Template.newContainer on _fullLayout, so copying _template into �nchorAx._input.rangeslider[ax._name] wrote non-attribute _template into gd.layout.xaxis.rangeslider. This change clones �xeRangeOpts, deletes _template from the copy, and assigns �nchorAx._input.rangeslider[ax._name] only when �xeRangeOpts exists.
Closes #6310
🐦
Changes
Testing
pm run lint: passed across 2,699 files
pm run typecheck: passed with 0 errors
pm run schema-typegen-diff-check: passed with 0 schema drift
pm run test-jasmine -- range_slider template axes --nowatch on Windows Chrome: 476 passed and 10 failed (the same 6 pre-existing pixel-coordinate slider drag tests fail on upstream/main, plus 4 Windows font-metric �xes assertions; the new regression test and all emplate specs passed)
angemode: 'auto', and missing-option cases
Checklist
eady-for-pr label, and it has no assignee or lists me as an assignee