Merge pull request #1677 from ing-bank/fix/checked-index-and-value
fix: fixes issue 1483
This commit is contained in:
commit
5a68c3fff5
1 changed files with 3 additions and 3 deletions
|
|
@ -188,7 +188,7 @@ export const checkedIndexAndValue = ({ shadowRoot }) => html`
|
|||
aria-labelledby="label-richSelectCheckedInput"
|
||||
type="number"
|
||||
@change=${e => {
|
||||
const selectEl = shadowRoot.getElementById('checkedRichSelect');
|
||||
const selectEl = shadowRoot.querySelector('#checkedRichSelect');
|
||||
selectEl.checkedIndex = e.target.value;
|
||||
}}
|
||||
/>
|
||||
|
|
@ -196,9 +196,9 @@ export const checkedIndexAndValue = ({ shadowRoot }) => html`
|
|||
<button
|
||||
class="log-button"
|
||||
@click=${() => {
|
||||
const selectEl = shadowRoot.getElementById('checkedRichSelect');
|
||||
const selectEl = shadowRoot.querySelector('#checkedRichSelect');
|
||||
console.log(`checkedIndex: ${selectEl.checkedIndex}`);
|
||||
console.log(`checkedValue: ${selectEl.checkedValue}`);
|
||||
console.log(`modelValue: ${selectEl.modelValue}`);
|
||||
}}
|
||||
>
|
||||
Console log checked index and value
|
||||
|
|
|
|||
Loading…
Reference in a new issue