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.10.0 app/packs/js/controllers/modal_controller.js
avo-1.9.1 app/packs/js/controllers/modal_controller.js
avo-1.9.0 app/packs/js/controllers/modal_controller.js
avo-1.8.4 app/packs/js/controllers/modal_controller.js
avo-1.8.3 app/packs/js/controllers/modal_controller.js
avo-1.8.2 app/packs/js/controllers/modal_controller.js
avo-1.8.1 app/packs/js/controllers/modal_controller.js
avo-1.8.0 app/packs/js/controllers/modal_controller.js
avo-1.7.3 app/packs/js/controllers/modal_controller.js
avo-1.7.3.pre.1 app/packs/js/controllers/modal_controller.js
avo-1.7.2 app/packs/js/controllers/modal_controller.js
avo-1.7.1 app/packs/js/controllers/modal_controller.js
avo-1.7.0 app/packs/js/controllers/modal_controller.js
avo-1.6.4.pre.1 app/packs/js/controllers/modal_controller.js
avo-1.6.3.pre.3 app/packs/js/controllers/modal_controller.js
avo-1.6.3.pre.2 app/packs/js/controllers/modal_controller.js
avo-1.6.3.pre.1 app/packs/js/controllers/modal_controller.js
avo-1.6.2.pre.1 app/packs/js/controllers/modal_controller.js
avo-1.6.1 app/packs/js/controllers/modal_controller.js
avo-1.6.0 app/packs/js/controllers/modal_controller.js