Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions wtforms_components/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,6 @@ class WeekInput(HTML5Input):
input_type = 'week'


class RangeInput(HTML5Input):
"""
Renders an input with type "range".
"""
input_type = 'range'


class URLInput(HTML5Input):
"""
Renders an input with type "url".
Expand Down Expand Up @@ -220,6 +213,12 @@ class NumberInput(HTML5Input):
def range_validators(self, field):
return min_max(field, self.range_validator_class)

class RangeInput(NumberInput):
"""
Renders an input with type "range".
"""
input_type = 'range'


class ReadOnlyWidgetProxy(object):
def __init__(self, widget):
Expand Down