Sha256: f46cb62d60f0ecdd8121e59284de35a9b7c058b45563078f1206135119daa6d4

Contents?: true

Size: 302 Bytes

Versions: 11

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true
module SimpleForm
  module Inputs
    class RangeInput < NumericInput
      def input(wrapper_options = nil)
        if html5?
          input_html_options[:type] ||= "range"
          input_html_options[:step] ||= 1
        end

        super
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
simple_form-5.3.0 lib/simple_form/inputs/range_input.rb
simple_form-5.2.0 lib/simple_form/inputs/range_input.rb
simple_form-5.1.0 lib/simple_form/inputs/range_input.rb
simple_form-5.0.3 lib/simple_form/inputs/range_input.rb
simple_form-5.0.2 lib/simple_form/inputs/range_input.rb
simple_form-5.0.1 lib/simple_form/inputs/range_input.rb
simple_form-5.0.0 lib/simple_form/inputs/range_input.rb
simple_form-4.1.0 lib/simple_form/inputs/range_input.rb
simple_form-4.0.1 lib/simple_form/inputs/range_input.rb
simple_form-4.0.0 lib/simple_form/inputs/range_input.rb
simple_form-3.5.1 lib/simple_form/inputs/range_input.rb