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

Uncaught TypeError: Cannot read property 'target' of undefined #246

Closed
bbenezech opened this issue Sep 13, 2016 · 2 comments
Closed

Uncaught TypeError: Cannot read property 'target' of undefined #246

bbenezech opened this issue Sep 13, 2016 · 2 comments
Labels

Comments

@bbenezech
Copy link

bbenezech commented Sep 13, 2016

event.detail.target || // This is for testing only. Please show be a better way to emulate this.

event.detail can be undefined with weird custom events.

Happened with Trix editor when undoing with CTRL+Z while an autosuggest is present elsewhere.

Yep. Edge case.

Proposed fixes:

  • find a "a better way to emulate this" 😜
  • be more defensive 💂
  • act like we don't care 🙉
@moroshko
Copy link
Owner

Thanks for raising the issue!

I went with "be more defensive 💂" for now.

@moroshko
Copy link
Owner

This is fixed in v6.0.4 now.

Thanks again 👍

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

No branches or pull requests

2 participants