Sha256: d404ff48d83ba3d0807c217fdf0f5638f56f650188b662810e54a8b50000fb53

Contents?: true

Size: 221 Bytes

Versions: 138

Compression:

Stored size: 221 Bytes

Contents

import { Controller } from 'stimulus'

export default class extends Controller {
  static targets = ['modal']

  close() {
    this.modalTarget.remove()

    document.dispatchEvent(new Event('actions-modal:close'))
  }
}

Version data entries

138 entries across 138 versions & 1 rubygems

Version Path
avo-1.22.2 app/javascript/js/controllers/modal_controller.js
avo-1.22.1 app/javascript/js/controllers/modal_controller.js
avo-1.22.1.pre.2 app/javascript/js/controllers/modal_controller.js
avo-1.22.1.pre.1 app/javascript/js/controllers/modal_controller.js
avo-1.22.0 app/javascript/js/controllers/modal_controller.js
avo-1.22.0.pre.1 app/javascript/js/controllers/modal_controller.js
avo-1.21.1.pre.1 app/javascript/js/controllers/modal_controller.js
avo-1.21.0 app/javascript/js/controllers/modal_controller.js
avo-1.20.2.pre.2 app/javascript/js/controllers/modal_controller.js
avo-1.20.2.pre.1 app/javascript/js/controllers/modal_controller.js
avo-1.21.0.pre.1 app/javascript/js/controllers/modal_controller.js
avo-1.20.1 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.11 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.10 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.9 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.8 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.7 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.6 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.5 app/javascript/js/controllers/modal_controller.js
avo-1.19.1.pre.4 app/javascript/js/controllers/modal_controller.js