Skip to content


Subversion checkout URL

You can clone with
Download ZIP


enableElement empties the html of the element if it is called twice #278

fatshotty opened this Issue · 0 comments

1 participant


hello there,

around this line
you set the ujs:enable-with to false

but here:

you test the same property with !== undefined.
This condition returns true also the second time the method is invoked.

Is it a known issue or simply is the correct way to do that and I'm doing something wrong?

thanks in advance

PS: the method will be called twice because there is an error after ajax.
So, my action returns a 401 (error but correct).
Code performs a enableElement on error and enableElement again on complete.
Hope can help


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.