When save or cancel buttons are conditionally rendered and then not rendered (due to a user action), if the user then updates a row of the model that the button is saving or cancelling, it causes this Javascript error ‘Uncaught Error: cannot call methods on button prior to initialization; attempted to call method ‘enable’’. This error occurs even if the button is rendered again.
I presume it is because it is trying to enable the save or cancel button (since the row is being updated) but the button is no longer rendered.
Question
When save or cancel buttons are conditionally rendered and then not rendered (due to a user action)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
