Sha256: fb5805480a02c865b1329dfaaf4cf6e1f80d39ddb0f5c1687c46b00f88018206

Contents?: true

Size: 287 Bytes

Versions: 3

Compression:

Stored size: 287 Bytes

Contents

module SimpleForm
  module Inputs
    class RangeInput < NumericInput
      disable :placeholder

      def input
        if SimpleForm.html5
          input_html_options[:type] ||= "range"
          input_html_options[:step] ||= 1
        end

        super
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_form-1.5.2 lib/simple_form/inputs/range_input.rb
simple_form-1.5.1 lib/simple_form/inputs/range_input.rb
simple_form-1.5.0 lib/simple_form/inputs/range_input.rb