Sha256: a9761d9a698760b0f65efbd0050f44a0c9203bcfe0a72dd500539812d9344ff6

Contents?: true

Size: 382 Bytes

Versions: 7

Compression:

Stored size: 382 Bytes

Contents

$ ->

  $body = $ 'body'
  $targets = [
      '.error input'
      '.error textarea'
      '.invalid input'
      '.invalid textarea'
      'input.error'
      'textarea.error'
      'input.invalid'
      'textarea.invalid'
      'input[aria-invalid="true"]'
      'textarea[aria-invalid="true"]'
    ].join(',')
  $body.on 'click', $targets, ->
    $(@).focus()
    $(@).select()

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
groundworkcss-2.3.7 app/assets/javascripts/groundworkcss/components/forms.coffee
groundworkcss-2.3.6 app/assets/javascripts/groundworkcss/components/forms.coffee
groundworkcss-2.3.5 app/assets/javascripts/groundworkcss/components/forms.coffee
groundworkcss-2.3.4 app/assets/javascripts/groundworkcss/components/forms.coffee
groundworkcss-2.3.3 app/assets/javascripts/groundworkcss/components/forms.coffee
groundworkcss-2.3.2 app/assets/javascripts/groundworkcss/components/forms.coffee
groundworkcss-2.3.1 app/assets/javascripts/groundworkcss/components/forms.coffee