Onchange of combobox value getting error in popUp However ,backend functionality is working as expected
MarkUp
<template>
<div class="picklist-container">
<lightning-combobox name="picklist" label={label} value={value} placeholder={placeholder} options={options}
onchange={handleChange}></lightning-combobox>
</div>
</template>
HandlerOnchange
@api label;
@api placeholder;
@api options;
@api value;
@api context;
handleChange(event) {
console.log('value sent ftom drop down',event.target.value+''+this.context);
//show the selected value on UI
this.value = event.target.value;
//
const eventPick = new CustomEvent('picklistchanged', {
bubbles : true,
composed : true,
cancelable : true,
detail: {
data : {
value : event.target.value,
context : this.context
}
}
})
this.dispatchEvent(eventPick);
```
onpicklistchanged
?onpicklistchanged={picklistChanged}
, where you include the presented component?onpicklistchanged={picklistChanged}
in the markup for the child element? And there is no reference to the event in the markup of the child, where the grandChild is included?