import { LightningElement, api, track } from 'lwc'; export default class LexCustomDiffReasonComp extends LightningElement { @api prodId; @api boxPiece; @track DiffReason = ''; connectedCallback() { console.log('ProdId' + this.prodId); } diffReasonBlur(event) { console.log('LexCustomDiffReasonComp'); this.DiffReason = event.target.value; this.dispatchEvent( new CustomEvent('diffreasons', { composed: true, bubbles: true, cancelable: true, detail: { data: { DiffReason: this.DiffReason, ProdId: this.prodId, boxPiece: this.boxPiece } } }) ); } }