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.6.1 app/javascript/js/controllers/modal_controller.js
avo-3.6.0 app/javascript/js/controllers/modal_controller.js
avo-3.5.8 app/javascript/js/controllers/modal_controller.js
avo-3.5.7 app/javascript/js/controllers/modal_controller.js
avo-3.5.6 app/javascript/js/controllers/modal_controller.js
avo-3.5.6.beta1 app/javascript/js/controllers/modal_controller.js
avo-3.5.5 app/javascript/js/controllers/modal_controller.js
avo-3.5.4 app/javascript/js/controllers/modal_controller.js
avo-3.5.3 app/javascript/js/controllers/modal_controller.js
avo-3.5.2 app/javascript/js/controllers/modal_controller.js
avo-3.5.1 app/javascript/js/controllers/modal_controller.js
avo-3.5.0 app/javascript/js/controllers/modal_controller.js
avo-3.4.4 app/javascript/js/controllers/modal_controller.js
avo-3.4.3 app/javascript/js/controllers/modal_controller.js
avo-3.4.2 app/javascript/js/controllers/modal_controller.js
avo-3.4.1 app/javascript/js/controllers/modal_controller.js
avo-3.4.0 app/javascript/js/controllers/modal_controller.js
avo-3.3.6 app/javascript/js/controllers/modal_controller.js
avo-3.3.5 app/javascript/js/controllers/modal_controller.js
avo-3.3.4 app/javascript/js/controllers/modal_controller.js