pull/479/head
Cory LaViska 2021-06-18 08:36:24 -04:00
rodzic 301c58d6fb
commit de9d43f67a
2 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -6,6 +6,10 @@ Components with the <sl-badge type="warning" pill>Experimental</sl-badge> badge
_During the beta period, these restrictions may be relaxed in the event of a mission-critical bug._ 🐛
## Next
- Fixed a bug in `sl-color-picker` where setting `value` immediately wouldn't trigger an update
## 2.0.0-beta.44
- 🚨 BREAKING: all `invalid` props on form controls now reflect validity before interaction [#455](https://github.com/shoelace-style/shoelace/issues/455)

Wyświetl plik

@ -554,17 +554,17 @@ export default class SlColorPicker extends LitElement {
this.value = this.inputValue;
}
@watch('format', { waitUntilFirstUpdate: true })
@watch('format')
handleFormatChange() {
this.syncValues();
}
@watch('opacity', { waitUntilFirstUpdate: true })
@watch('opacity')
handleOpacityChange() {
this.alpha = 100;
}
@watch('value', { waitUntilFirstUpdate: true })
@watch('value')
handleValueChange(oldValue: string, newValue: string) {
const newColor = this.parseColor(newValue);