Skip to content
New issue

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

feat(dw-dialog): TypeError unobserver trigger element is undefined #73

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

hitendreamworld
Copy link
Member

No description provided.

@@ -207,6 +197,8 @@ export const DwModalDialogMixin = (baseElement) => class DwModalDialog extends b
super.open(triggerEl)
return;
}
this.resizeObserver.observe(this._dialogContentEl);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hitendreamworld for better logic, following updates are needed:

  1. Don't write custom getter of _dialogContentEl
  2. Instead, during observe set this instance variable, using the same logic written for the custom getter.
  3. Use the same instance variable during unobserve.

@hitendreamworld hitendreamworld merged commit 6f153bd into master Jan 17, 2023
@hitendreamworld hitendreamworld deleted the feature/type-error-unobserver-refactor branch January 17, 2023 10:32
@dw-devops
Copy link

🎉 This PR is included in version 5.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants