Skip to content

Commit

Permalink
delegate set value to form input setter
Browse files Browse the repository at this point in the history
  • Loading branch information
jdilag90 committed Sep 4, 2024
1 parent e667a7b commit f1765fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- `[Radio]` Fixed an issue where the radio group could not set checked for radio elements when using Angular's FormControl and value binding. ([#2700](https://github.com/infor-design/enterprise-wc/issues/2700))
- `[Splitter]` Converted datagrid popups to fixed to go over splitter panes. ([#2499](https://github.com/infor-design/enterprise-wc/issues/2499))
- `[Splitter]` Fixed an issue where position was not retained when expanding and collapsing. ([#2527](https://github.com/infor-design/enterprise-wc/issues/2527))
- `[Switch]` Fixed an issue where switch triggered `change` event twice. ([#2681](https://github.com/infor-design/enterprise-wc/issues/2681))

## 1.4.2

Expand Down
6 changes: 1 addition & 5 deletions src/components/ids-switch/ids-switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,7 @@ export default class IdsSwitch extends Base {
* @param {string} value the value property
*/
set value(value: string) {
if (!value) {
this.removeAttribute(attributes.VALUE);
return;
}
this.setAttribute(attributes.VALUE, value || '');
super.value = value;
}

/**
Expand Down

0 comments on commit f1765fb

Please sign in to comment.