Skip to main content

change

Description

fires when a new option is selected in a combo

Parameters

The callback of the event takes an object with the following parameter:

  • value - (object) an id of the newly selected option or "" if the value is cleared

Example

<script>
function handleSelect({value}) {
console.log(value);
// an id of the selected option
}
</script>

<Combo onchange={handleSelect}/>

Details

The handler function receives an object with an id of the newly selected option or "" if the value is cleared.

Related article: Catching the change of the selected option