Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only remove attachment upload button after trix has initialized (#3464)
* Only remove attachment upload button after trix has initialized I'm finding that when attachments are disabled the trix field controller is trying to remove the attachments button before trix has created the toolbar. This crashes the controller inside the connect method and so none of the other event listeners are set up. * Update app/javascript/js/controllers/fields/trix_field_controller.js * fix syntax * fix disable_attachments logic --------- Co-authored-by: Paul Bob <[email protected]> Co-authored-by: Paul Bob <[email protected]>
- Loading branch information