Sha256: eb7d374dd4422c725bb4b414f308e327d33ace31033d9abe1388faa8d0533551

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module Lifeform
  module Libraries
    class Shoelace
      class SubmitButton < Button
        def initialize(form, field_definition, **attributes)
          attributes[:name] ||= "commit"
          attributes[:type] = "submit"

          super
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lifeform-0.15.0 lib/lifeform/libraries/shoelace/submit_button.rb
lifeform-0.14.0 lib/lifeform/libraries/shoelace/submit_button.rb
lifeform-0.13.0 lib/lifeform/libraries/shoelace/submit_button.rb
lifeform-0.12.0 lib/lifeform/libraries/shoelace/submit_button.rb
lifeform-0.11.0 lib/lifeform/libraries/shoelace/submit_button.rb
lifeform-0.10.0 lib/lifeform/libraries/shoelace/submit_button.rb
lifeform-0.9.0 lib/lifeform/libraries/shoelace/submit_button.rb