We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected behavior There would be no error if returnElements is provided because it defaults to an empty array
Actual behavior The following error is emitted:
pharos-toaster.js:71 Uncaught TypeError: returnElements is not iterable at PharosComponent._focusOnReturnElements (pharos-toaster.js:71:1) at PharosComponent._closeToast (pharos-toaster.js:84:1) at pharos-toast.js:101:1 at debounce.js:10:1
Steps to reproduce the issue
const event = new CustomEvent("pharos-toast-open", { detail: { content: "Some problem has occurred", status: "error", }, }); document.dispatchEvent(event);
Screenshots or code I suspect this section is always overwriting the default, even when it isn't defined in the event.
const { content, status, id, indefinite, returnElements } = (<CustomEvent>event).detail; this.returnElements = returnElements;
Pharos version 12.19.2
Your environment
The text was updated successfully, but these errors were encountered:
Context: #503
Sorry, something went wrong.
brentswisher
Successfully merging a pull request may close this issue.
Expected behavior
There would be no error if returnElements is provided because it defaults to an empty array
Actual behavior
The following error is emitted:
Steps to reproduce the issue
Screenshots or code
I suspect this section is always overwriting the default, even when it isn't defined in the event.
Pharos version
12.19.2
Your environment
The text was updated successfully, but these errors were encountered: