Skip to content

Commit

Permalink
add-onFocus-to-rangeSlider (#491)
Browse files Browse the repository at this point in the history
* added optional onFocus event for rangeslider that can be used for GA

* bumped version
  • Loading branch information
alexkhalevine authored Apr 11, 2019
1 parent 752e8e9 commit d048bda
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
console.warn('unable to connect to parent frame for connecting dev tools');
}</script></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the storybook config.</li><li>Try reloading the page.</li></ul></div></div><div class="sb-errordisplay sb-wrapper"><div id="error-message" class="sb-heading"></div><pre class="sb-errordisplay_code">
<code id="error-stack"></code>
</pre></div><div id="root"></div><script src="runtime~main.83669f2b005ee258e7d6.bundle.js"></script><script src="vendors~main.83669f2b005ee258e7d6.bundle.js"></script><script src="main.83669f2b005ee258e7d6.bundle.js"></script></body></html>
</pre></div><div id="root"></div><script src="runtime~main.e60190c357946296b8a1.bundle.js"></script><script src="vendors~main.e60190c357946296b8a1.bundle.js"></script><script src="main.e60190c357946296b8a1.bundle.js"></script></body></html>
2 changes: 0 additions & 2 deletions docs/main.83669f2b005ee258e7d6.bundle.js

This file was deleted.

2 changes: 2 additions & 0 deletions docs/main.e60190c357946296b8a1.bundle.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nukleus",
"version": "14.2.0",
"version": "14.2.1",
"description": "Shared components repo for kununu projects",
"main": "dist/components/index.js",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions src/components/RangeSlider/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const RangeSliderComponent = ({
onChange,
label,
containerClass,
onFocus,
}) => (
<>
<div className={containerClass}>
Expand All @@ -35,6 +36,7 @@ const RangeSliderComponent = ({
value={value}
onChange={onChange}
onBlur={onBlur}
onFocus={onFocus}
className={styles.slider}
/>
</label>
Expand All @@ -58,6 +60,7 @@ RangeSliderComponent.propTypes = {
onChange: PropTypes.func.isRequired,
name: PropTypes.string.isRequired,
onBlur: PropTypes.func.isRequired,
onFocus: PropTypes.func,
meta: PropTypes.shape({
value: PropTypes.number.isRequired,
touched: PropTypes.bool,
Expand All @@ -73,6 +76,7 @@ RangeSliderComponent.propTypes = {
RangeSliderComponent.defaultProps = {
label: '',
containerClass: styles.sliderWrapper,
onFocus: null,
};


Expand Down
Loading

0 comments on commit d048bda

Please sign in to comment.