When save or cancel buttons are conditionally rendered and then not rendered (due to a user action) it causes errors

  • 1
  • Problem
  • Updated 4 years ago
  • (Edited)
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.
Photo of Menachem Shanowitz

Menachem Shanowitz

  • 1,074 Points 1k badge 2x thumb

Posted 4 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Menachem,

This looks like a bug in Skuid. I've logged it, and we'll try to get it addressed in a soon and coming release. Thanks for being a part of our community and helping us make our product better.