Sha256: 68fdffedfd7237df936242e8d2cb148e16b03b70e8461a6f4e74501c6e53df26

Contents?: true

Size: 231 Bytes

Versions: 65

Compression:

Stored size: 231 Bytes

Contents

import { Controller } from '@hotwired/stimulus'

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

  close() {
    this.modalTarget.remove()

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

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
avo-3.10.10 app/javascript/js/controllers/modal_controller.js
avo-3.10.9 app/javascript/js/controllers/modal_controller.js
avo-3.10.8 app/javascript/js/controllers/modal_controller.js
avo-3.10.7 app/javascript/js/controllers/modal_controller.js
avo-3.10.6 app/javascript/js/controllers/modal_controller.js
avo-3.10.5 app/javascript/js/controllers/modal_controller.js
avo-3.10.4 app/javascript/js/controllers/modal_controller.js
avo-3.10.3 app/javascript/js/controllers/modal_controller.js
avo-3.10.2 app/javascript/js/controllers/modal_controller.js
avo-3.10.1 app/javascript/js/controllers/modal_controller.js
avo-3.10.0 app/javascript/js/controllers/modal_controller.js
avo-3.9.2 app/javascript/js/controllers/modal_controller.js
avo-3.9.1 app/javascript/js/controllers/modal_controller.js
avo-3.8.2 app/javascript/js/controllers/modal_controller.js
avo-3.9.0 app/javascript/js/controllers/modal_controller.js
avo-3.8.1 app/javascript/js/controllers/modal_controller.js
avo-3.8.0 app/javascript/js/controllers/modal_controller.js
avo-3.6.4 app/javascript/js/controllers/modal_controller.js
avo-3.6.3 app/javascript/js/controllers/modal_controller.js
avo-3.6.2 app/javascript/js/controllers/modal_controller.js