Sha256: 52f4323ac2a73d1486c14a3b430c19495d4fb36ed4bfa844249adf7284a03dc0

Contents?: true

Size: 249 Bytes

Versions: 5

Compression:

Stored size: 249 Bytes

Contents

import { Controller } from "@hotwired/stimulus"
import { useClickOutside } from "stimulus-use"

export default class extends Controller {
  connect() {
    useClickOutside(this)
  }

  clickOutside() {
    this.element.removeAttribute("open")
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/javascript/solidus_admin/controllers/details_click_outside_controller.js
solidus_admin-0.3.1 app/javascript/solidus_admin/controllers/details_click_outside_controller.js
solidus_admin-0.3.0 app/javascript/solidus_admin/controllers/details_click_outside_controller.js
solidus_admin-0.2.0 app/javascript/solidus_admin/controllers/details_click_outside_controller.js
solidus_admin-0.1.0 app/javascript/solidus_admin/controllers/details_click_outside_controller.js