@autoguru/overdrive 4.3.2 → 4.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/components/NumberInput/NumberInput.js +3 -3
- package/dist/components/NumberInput/stories.js +0 -5
- package/dist/components/TextAreaInput/stories.js +1 -7
- package/dist/components/TextInput/stories.js +0 -5
- package/dist/components/private/InputBase/withEnhancedInput.css.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,9 +15,9 @@ export const NumberInput = withEnhancedInput(({ field: { ref, ...incomingFieldPr
|
|
|
15
15
|
let onWheelListener;
|
|
16
16
|
let wheelListener;
|
|
17
17
|
if (preventMouseWheel && inputRef?.current) {
|
|
18
|
-
mouseWheelListener = inputRef.current.addEventListener('mousewheel', preventWheel, { passive:
|
|
19
|
-
onWheelListener = inputRef.current.addEventListener('onwheel', preventWheel, { passive:
|
|
20
|
-
wheelListener = inputRef.current.addEventListener('wheel', preventWheel, { passive:
|
|
18
|
+
mouseWheelListener = inputRef.current.addEventListener('mousewheel', preventWheel, { passive: false });
|
|
19
|
+
onWheelListener = inputRef.current.addEventListener('onwheel', preventWheel, { passive: false });
|
|
20
|
+
wheelListener = inputRef.current.addEventListener('wheel', preventWheel, { passive: false });
|
|
21
21
|
}
|
|
22
22
|
return () => {
|
|
23
23
|
if (mouseWheelListener)
|
|
@@ -21,13 +21,7 @@ export default {
|
|
|
21
21
|
};
|
|
22
22
|
const defaultValue = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae pulvinar odio. Duis laoreet lacus vel consequat congue. Ut euismod enim non eros lacinia mollis. Vestibulum libero quam, aliquet non justo laoreet, egestas molestie ante. Quisque urna leo, consectetur id dui aliquet, placerat iaculis augue. Pellentesque sed vestibulum augue, quis porta lectus.';
|
|
23
23
|
const defaultPlaceholder = 'Tell us about your car.';
|
|
24
|
-
const argTypes = {
|
|
25
|
-
value: {
|
|
26
|
-
control: {
|
|
27
|
-
type: 'string'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
24
|
+
const argTypes = {};
|
|
31
25
|
|
|
32
26
|
const Template = args => _jsx(TextAreaInput, _objectSpread({}, args));
|
|
33
27
|
|
|
@@ -18,7 +18,7 @@ export const input = {
|
|
|
18
18
|
background: 'transparent',
|
|
19
19
|
outline: 'none',
|
|
20
20
|
fontSize: vars.typography.size['4'].fontSize,
|
|
21
|
-
lineHeight:
|
|
21
|
+
lineHeight: vars.typography.size['4'].lineHeight,
|
|
22
22
|
height: vars.space['8'],
|
|
23
23
|
padding: `calc(((${vars.space['8']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px) calc(${vars.space['4']} - 1px)`,
|
|
24
24
|
selectors: {
|