Hello, another bug I found is this:
When you select or type a user and you want to REMOVE any of the users, say, you made a mistake, or you select the "X" to remove all users and start over and select or type another new user, the ones you "thought" you deleted come back.
If you click on a SINGLE user in the multi-select, you will see the user you're trying to delete/remove have a dark shadow over it and it doesn't delete.
Please help!
Here's the error I'm getting
DEFAULT TypeError: Cannot read property 'indexOf' of null
at MultiSelectComponent.push../node_modules/@syncfusion/ej2-dropdowns/src/multi-select/multi-select.js.MultiSelect.removeValue (multi-select.js:1513)
at MultiSelectComponent.push../node_modules/@syncfusion/ej2-dropdowns/src/multi-select/multi-select.js.MultiSelect.onChipRemove (multi-select.js:1477)
at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
at Object.onInvokeTask (core.js:3811)
at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422)
at Zone../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
at ZoneTask../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:498)
at invokeTask (zone.js:1744)
at HTMLSpanElement.globalZoneAwareCallback (zone.js:1770)
Here's the issue: Note the three people added
When I click on one to delete, this is what happens and I cannot delete it
This all of a sudden happens. Thoughts?
When adding NEW users

When I drop down the share section, with no one there, this is what I see;
How is it retaining when I click the "x" to delete ALL?
This is weird:
1 selected is not true!
This is my control:
AH HA!!!!!!
This call:
// Check for the bug... TAB out causes UNDEFINED
this.formObject.validate('listofemails');
ngOnInit() {
const options: FormValidatorModel = {
rules: {
'listofemails': {
required: [true, '*Enter/Select an email address'],
regex: ['^^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]$', '*Enter a valid email.'],
minlegnth: 6
}
},
customPlacement: (inputElement: HTMLElement, errorElement: HTMLElement) => {
inputElement.parentElement.parentElement.appendChild(errorElement);
}
};
this.formObject = new FormValidator('#form-element', options);
console.log(`TODO: fixme by capturing subscription and tear down`);
// TODO: added the following for integration branch, to get app-inst-id and active-section
this.stateService.currentState$.subscribe((currentState: FormState) => {
this._formState = currentState;
this.currentState = currentState;
});
}
is producing this error:
DEFAULT TypeError: Cannot read property 'match' of undefined
at FormValidator.push../node_modules/@syncfusion/ej2-inputs/src/form-validator/form-validator.js.FormValidator.getErrorMessage (form-validator.js:595)
at FormValidator.push../node_modules/@syncfusion/ej2-inputs/src/form-validator/form-validator.js.FormValidator.validateRules (form-validator.js:515)
at FormValidator.push../node_modules/@syncfusion/ej2-inputs/src/form-validator/form-validator.js.FormValidator.validate (form-validator.js:176)
at SocialShareComponent.onChange (social-share.component.ts:125)
at Object.handleEvent (social-share.component.html:42)
at handleEvent (core.js:10251)
at callWithDebugContext (core.js:11344)
at Object.debugHandleEvent [as handleEvent] (core.js:11047)
at dispatchEvent (core.js:7710)
at core.js:9190
This is the problem:
There is ONLY 1 item in the array but you see "THREE" in the multi-select. I CANNOT delete any of them, yet,
Selected item is removed []length: 0__proto__: Array(0)
social-share.component.ts:120 MultiSelect is: null
So, if Multi-select is NULL when I clicked on My Name: Peter... how come the multi-select is NULL and the selected item removed is 0? Meaning, I did, in fact delete me, but it's a GHOST!