Sha256: 6974196308fbea20b0eb1fbc235b2f95f44974648649098bb1c4b72c18bec1b7

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

import { Controller } from '@hotwired/stimulus'

export default class extends Controller {
  static values = {
    customValidity: String,
  }

  connect() {
    if (this.customValidityValue)
      this.element.setCustomValidity(this.customValidityValue)
  }

  clearCustomValidity() {
    this.element.setCustomValidity('')
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/forms/input/component.js
solidus_admin-0.3.1 app/components/solidus_admin/ui/forms/input/component.js
solidus_admin-0.3.0 app/components/solidus_admin/ui/forms/input/component.js
solidus_admin-0.2.0 app/components/solidus_admin/ui/forms/input/component.js
solidus_admin-0.1.0 app/components/solidus_admin/ui/forms/input/component.js
solidus_admin-0.0.2 app/components/solidus_admin/ui/forms/input/component.js
solidus_admin-0.0.1 app/components/solidus_admin/ui/forms/input/component.js