Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Titani committed Jan 22, 2021
1 parent 992e2c1 commit e4c3c6e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/react-core/src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
thumbRef.current.focus();
};



const onBlur = () => {
if (onChange) {
onChange(localInputValue);
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/src/components/Slider/examples/Slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class ValueInput extends React.Component {
}
};

this.onChangeValueContinuous = value => {
this.onValueChangeContinuous = value => {
const newValue = Math.floor(value);
this.setState({
inputValueContinuous: newValue,
Expand Down Expand Up @@ -233,7 +233,7 @@ class ValueInput extends React.Component {
isInputVisible
inputValue={this.state.inputValueContinuous}
inputLabel="%"
onValueChange={this.onChangeValueContinuous}
onValueChange={this.onValueChangeContinuous}
onChange={this.onChangeContinuous}
/>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ describe('Slider Demo Test', () => {
it('renders the discrete sliders', () => {
cy.get('#discrete-slider').should('exist');
cy.get('#discrete-slider').should('have.attr', 'style', '--pf-c-slider--value:62.5%;');

});
});

0 comments on commit e4c3c6e

Please sign in to comment.