Skip to content

Commit

Permalink
Fix segmented control indicator (#1952)
Browse files Browse the repository at this point in the history
* SegmentedControl: Fix indicator update on value change

* Create funny-horses-rest.md
  • Loading branch information
splashdust authored Jan 28, 2025
1 parent c259ac4 commit 3a9af88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-horses-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sebgroup/green-core': patch
---

**Segmented Control:** Fix issue where indicator would not update to reflect value
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class GdsSegmentedControl<ValueT = any> extends GdsElement {
}

@resizeObserver()
@watch('segMinWidth')
@watch('value')
private _recalculateMinWidth() {
this.updateComplete.then(() => {
this.#updateScrollBtnStateDebounced()
Expand Down

0 comments on commit 3a9af88

Please sign in to comment.