(option: HTMLOptionElement)
| 126 | } |
| 127 | |
| 128 | function selectOption(option: HTMLOptionElement) { |
| 129 | option.selected = newValue |
| 130 | fireEvent( |
| 131 | select, |
| 132 | createEvent('input', select, { |
| 133 | bubbles: true, |
| 134 | cancelable: false, |
| 135 | composed: true, |
| 136 | ...init, |
| 137 | }), |
| 138 | ) |
| 139 | fireEvent.change(select, init) |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | const selectOptions = selectOptionsBase.bind(null, true) |