From 062756959bbff8d3254a0dec6e4e8fc528a7b206 Mon Sep 17 00:00:00 2001 From: paulkirspuu Date: Tue, 7 May 2024 11:53:47 +0300 Subject: [PATCH] refactor(cxl-ui): cxl-star-rating remove _saveState and _updateReadonlyAndValue This is necessary to prevent the component from saving default value on each usage case. We prefer it being zero at all times. https://app.clickup.com/t/86azy6kx9?comment=90140034479841&threadedComment=90140035014093 --- packages/cxl-ui/src/components/cxl-star-rating.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/cxl-ui/src/components/cxl-star-rating.js b/packages/cxl-ui/src/components/cxl-star-rating.js index 64bd22544..782398174 100644 --- a/packages/cxl-ui/src/components/cxl-star-rating.js +++ b/packages/cxl-ui/src/components/cxl-star-rating.js @@ -124,9 +124,6 @@ export class CXLStarRatingElement extends LitElement { this.setAttribute('readonly', 'true'); return; } - - this._saveState(value); - this._updateReadonlyAndValue(); } _starClicked(e, value) {