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: this.inhibitDefault is not a function #64

Closed
busla opened this issue May 2, 2017 · 3 comments
Closed

Uncaught TypeError: this.inhibitDefault is not a function #64

busla opened this issue May 2, 2017 · 3 comments
Assignees
Labels

Comments

@busla
Copy link

busla commented May 2, 2017

I get the following error in the browser console when dragging an image to the editor:

Uncaught TypeError: this.inhibitDefault is not a function
    at HTMLTextAreaElement.onDragEnter (markdownx.js:48)
onDragEnter @ markdownx.js:48
markdownx.js:48 Uncaught TypeError: this.inhibitDefault is not a function
    at HTMLTextAreaElement.onDragEnter (markdownx.js:48)
onDragEnter @ markdownx.js:48

The image uploads successfully and is displayed in the preview despite of this error.

@xenatisch xenatisch self-assigned this May 2, 2017
@xenatisch xenatisch added the bug label May 2, 2017
@xenatisch
Copy link
Collaborator

Your browser and its version, please.

That's an event trigger, so it wouldn't have an impact on upload or display. It's primarily there for people who wish to handle these events (e.g. add a spinner or something).

I'll of course correct the issue, but it wouldn't be at the top of my list.

@busla
Copy link
Author

busla commented May 2, 2017

Sorry mate, and thanks for looking into this 😄

  • Chrome
  • 58.0.3029.81 (64-bit)

@xenatisch
Copy link
Collaborator

Solved - inhibitDefault now behaves as it should.

adi- pushed a commit that referenced this issue May 4, 2017
* 'master' of https://github.com/neutronX/django-markdownx:
  Incremented patch number re issues #63 and #64.
  Issue #64 - inhibitDefault is now accessible from within EventHandlers.
  Issue #64 + slight improvement.
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