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

Workflow actions Javascript should be unbound #560

Closed
mjgiarlo opened this issue Mar 15, 2017 · 1 comment
Closed

Workflow actions Javascript should be unbound #560

mjgiarlo opened this issue Mar 15, 2017 · 1 comment
Labels
Milestone

Comments

@mjgiarlo
Copy link
Member

Seeing this repeated over and over in the console (on Firebox, by @jcoyne):

TypeError: $(...).offset(...) is undefined[Learn More] workflow_actions_affix.self-bc5077219b99ff99c8d7dd9838d1a73bc701d27ab9b89a85b43b19db3437ce51.js:5:28
	<anonymous> http://localhost:3000/assets/sufia/workflow_actions_affix.self-bc5077219b99ff99c8d7dd9838d1a73bc701d27ab9b89a85b43b19db3437ce51.js:5:28
	jQuery.event.dispatch http://localhost:3000/assets/jquery.self-bd7ddd393353a8d2480a622e80342adf488fb6006d667e8b42e4c0073393abee.js:5226:16
	jQuery.event.add/elemData.handle

It seems that .workflow-actions is not on the page:

$('.workflow-actions')
Object { length: 0, prevObject: Object, context: HTMLDocument → edit, selector: ".workflow-actions" }

Justin's assumption was that it's because the event is binding to $(document).on('scroll' on a page where the condition is true, and it doesn't unbind when turbolinks switches page.

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

1 participant