-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
BacklogIts part of the team backlogIts part of the team backlog
Description
Prerequisites
- I have read the Contributing Guidelines.
- I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.
What happened?
I am not sure if this is actually a bug or expected behavior but I've noticed that in the ix-select single mode empty value is an empty array. I think I would rather expect an empty string there.
What type of frontend framework are you seeing the problem on?
JavaScript
On which version of the frontend framework are you experiencing the issue?
Which version of iX do you use?
3.2.0 and 4.0.0
Code to produce this issue.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Select multiple example</title>
</head>
<body>
<ix-select allow-clear>
<ix-select-item label="Item 1" value="1"></ix-select-item>
<ix-select-item label="Item 2" value="2"></ix-select-item>
<ix-select-item label="Item 3" value="3"></ix-select-item>
<ix-select-item label="Item 4" value="4"></ix-select-item>
</ix-select>
<script>
(async function () {
await window.customElements.whenDefined('ix-select');
const select = document.querySelector('ix-select');
select.value = ['1', '3'];
select.addEventListener('valueChange', (e) => {
console.log(e.detail);
});
})();
</script>
<script type="module" src="./init.js"></script>
</body>
</html>Metadata
Metadata
Assignees
Labels
BacklogIts part of the team backlogIts part of the team backlog