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.13.7 app/javascript/js/controllers/modal_controller.js
avo-3.13.6 app/javascript/js/controllers/modal_controller.js
avo-3.13.5 app/javascript/js/controllers/modal_controller.js
avo-3.13.4 app/javascript/js/controllers/modal_controller.js
avo-3.13.3 app/javascript/js/controllers/modal_controller.js
avo-3.13.2 app/javascript/js/controllers/modal_controller.js
avo-3.13.1 app/javascript/js/controllers/modal_controller.js
avo-3.13.0 app/javascript/js/controllers/modal_controller.js
avo-3.12.0 app/javascript/js/controllers/modal_controller.js
avo-3.11.10 app/javascript/js/controllers/modal_controller.js
avo-3.11.9 app/javascript/js/controllers/modal_controller.js
avo-3.11.8 app/javascript/js/controllers/modal_controller.js
avo-3.11.7 app/javascript/js/controllers/modal_controller.js
avo-3.11.6 app/javascript/js/controllers/modal_controller.js
avo-3.11.5 app/javascript/js/controllers/modal_controller.js
avo-3.11.4 app/javascript/js/controllers/modal_controller.js
avo-3.11.3 app/javascript/js/controllers/modal_controller.js
avo-3.11.2 app/javascript/js/controllers/modal_controller.js
avo-3.11.1 app/javascript/js/controllers/modal_controller.js
avo-3.11.0 app/javascript/js/controllers/modal_controller.js