vue-interact
vue-interact copied to clipboard
Avoid fail silently in behavior oriented components
The lines below allow for fail silently on components that require user action, this is problematic as it has no indication on why it failed for the user, neither for the developer (when passing a NaN for example). Perhaps a better approach would be to launch an indicative exception but to keep the state consistent.
https://github.com/kimuraz/vue-interact/blob/587f8ddbf5be814ef14fa989828d7a8dfde2eef4/src/directives/resizable.js#L25 https://github.com/kimuraz/vue-interact/blob/587f8ddbf5be814ef14fa989828d7a8dfde2eef4/src/directives/resizable.js#L26 https://github.com/kimuraz/vue-interact/blob/587f8ddbf5be814ef14fa989828d7a8dfde2eef4/src/mixins/ResizingMixin.js#L47 https://github.com/kimuraz/vue-interact/blob/587f8ddbf5be814ef14fa989828d7a8dfde2eef4/src/mixins/ResizingMixin.js#L48 https://github.com/kimuraz/vue-interact/blob/587f8ddbf5be814ef14fa989828d7a8dfde2eef4/src/mixins/DraggingMixin.js#L58 https://github.com/kimuraz/vue-interact/blob/587f8ddbf5be814ef14fa989828d7a8dfde2eef4/src/mixins/DraggingMixin.js#L59