-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/person/select/selectedperson null (#1641)
* chore(storybook): person-select story stopp using cem for types * fix(person): fxes issues when clearing and attribute selectedperson isset * docs(person): release changeset
- Loading branch information
Showing
5 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"@equinor/fusion-wc-person": patch | ||
--- | ||
|
||
### Changes in `PersonSelectController` | ||
|
||
- Updated the `attrSelectPerson` method to clear `selectedIds` when `personData` or `selectedPerson` is null. | ||
- Updated the `clearInput` method to reset `azureId` and `upn` properties. | ||
- Refactored the `clear` method to use `#firePersonSelectEvent` instead of directly dispatching the event. | ||
- Removed unnecessary comments and cleaned up the code. | ||
|
||
### Changes in `PersonSelectElement` | ||
|
||
- Added a new CSS class `.selected-persons` to hide the text input when a person is selected. | ||
- Updated the `selectedPersonsTemplate` method to be conditionally rendered based on the `selectedIds` size and `isOpen` state. | ||
- Adjusted the `classMap` to include the `selected-persons` class based on the `selectedIds` size and `isOpen` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters