mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix a bug in select not updating when value has changed (#181)
* fix a bug in select not updating when value has changed * prettier
This commit is contained in:
@@ -15,6 +15,7 @@ During the alpha period, things might break! We take breaking changes very serio
|
||||
## Next
|
||||
|
||||
- Fixed a bug in `<wa-relative-time>` where the title attribute would show with redundant info
|
||||
- Added more resilient support for lazy loaded options in `<wa-select>`
|
||||
|
||||
## 3.0.0-alpha.3
|
||||
|
||||
|
||||
@@ -359,6 +359,7 @@ export default class WaSelect extends WebAwesomeFormAssociatedElement {
|
||||
|
||||
// If it is open, update the value based on the current selection and close it
|
||||
if (this.currentOption && !this.currentOption.disabled) {
|
||||
this.valueHasChanged = true;
|
||||
if (this.multiple) {
|
||||
this.toggleOptionSelection(this.currentOption);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user