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

Added type check for 'dragStarted' variable as this is causing thousa… #1689

Merged
merged 1 commit into from
Dec 5, 2019
Merged

Conversation

kcak11
Copy link

@kcak11 kcak11 commented Nov 19, 2019

Added type check for 'dragStarted' variable as this is causing thousands of console errors in Chrome, Firefox, Edge, IE, Safari before the first drag.
This change is harmless because it is just checking if the variable dragStarted is declared before using it.

Tested across all of the above browsers and working fine after this change.

…nds of console errors in Chrome, Firefox, Edge, IE, Safari before the first drag.

This change is harmless because it is just checking if the variable dragStarted is declared before using it.

Tested across all of the above browsers and working fine after this change.
@owen-m1
Copy link
Member

owen-m1 commented Nov 19, 2019

What is the error? The variable is declared as false at the start of the file.

@kcak11
Copy link
Author

kcak11 commented Nov 20, 2019

What is the error? The variable is declared as false at the start of the file.

Error:
Uncaught ReferenceError: dragStarted is not defined

This is noticed before performing the first drag action on the Sortable elements. If the user clicks anywhere else in the neighbouring elements, then the above error is seen.
Once the user drags one of the Sortable elements, then the error doesn't appear.

@kcak11
Copy link
Author

kcak11 commented Nov 22, 2019

@owen-m1 any updates on merging this pull-request ?

Thanks in advance.

@kcak11
Copy link
Author

kcak11 commented Dec 5, 2019

@owen-m1 Do you need any more information to merge this pull request. Please let me know.

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

Successfully merging this pull request may close these issues.

2 participants