Hi All, I'm exploring the below multiselect control and I need to trigger a notifyOutputChanged()
methods on onchange of the text field which stored the id's of the control.
The PCF control is as below
https://github.com/markcunninghamuk/PCF_Library/tree/main/controls/pcfcontroldemo/MultiSelectControl
The field on the form as below. (Same field with one with Control (Red) enabled and Another one with not control enabled (Blue)

The challenge I face here is , when I update the control enabled one, it updates the text field which holds the guid's of the control selected values. but not other way around.
Upon debugging, I found out the Notifyoutputchanged() changes is not invoking onchange of the text field.
I have already inspect the property of the directorate text field and got the property information and build the method as below
// Get a reference to the "otherField" element
const directorateTextField = document.querySelector('[data-id="svdp_directorate.fieldControl-text-box-text"]') as HTMLInputElement | null;
// Add an event listener to "directorateTextField" to trigger notifyChange when it changes
if (directorateTextField !== null) {
directorateTextField.addEventListener('change', () => {
const newValue = directorateTextField.value; // Get the new value of "otherField"
this.notifyChange(newValue); // Call notifyChange with the new value
});
} else {
console.error('Element not found.'); // Handle the case where the element is not found
}
Please assist me. Let me know if there is any way to refresh the values in the control field when I update the textfield which holds the guids.
See the error sample below ( I removed the last guid from the comma separated text), it did not update the control below
Before

After
