From 5a698a4738210291afb5784486fb3b3489257f23 Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Fri, 5 Feb 2021 15:09:02 -0500 Subject: [PATCH] Add style parameter --- CHANGELOG.txt | 4 ++++ lib/RangeStepInput.jsx | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 1729486..6a0d360 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,7 @@ +1.2.5 +------------------ +* Add new style parameter to the rendered + 1.2.4 (2018-12-12) ------------------ * More click-hold bug fixes. diff --git a/lib/RangeStepInput.jsx b/lib/RangeStepInput.jsx index ee58bcc..00c46b2 100644 --- a/lib/RangeStepInput.jsx +++ b/lib/RangeStepInput.jsx @@ -34,6 +34,7 @@ export default class RangeStepInput extends React.Component { value={this.props.value} name={this.props.name} id={this.props.id} + style={this.props.style} disabled={this.props.disabled} onChange={this.props.onChange} onMouseDown={this.onMouseDown} @@ -149,6 +150,7 @@ RangeStepInput.propTypes = { id: PropTypes.string, name: PropTypes.string, disabled: PropTypes.bool, + style: PropTypes.string, // Determines whether the slider changes value when the cursor is // held on it.