@artsy/palette-mobile 13.2.23 → 13.2.24

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.
@@ -381,7 +381,7 @@ exports.Input = (0, react_1.forwardRef)(({ addClearListener = false, defaultValu
381
381
  }, [placeholder, styles]);
382
382
  return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexGrow: 1, children: [renderAndroidPlaceholderMeasuringHack(), renderHint(), renderAnimatedTitle(), (0, jsx_runtime_1.jsx)(AnimatedStyledInput, { value: value, onChangeText: handleChangeText, style: [styles, textInputAnimatedStyles], onFocus: handleFocus, onBlur: handleBlur, onLayout: (event) => {
383
383
  setInputWidth(event.nativeEvent.layout.width);
384
- }, scrollEnabled: false, editable: !disabled, textAlignVertical: props.multiline ? "top" : "center", ref: inputRef, placeholderTextColor: color("black60"), placeholder: getPlaceholder(), secureTextEntry: !showPassword, ...props }), renderRightComponent(), renderLeftComponent(), renderBottomComponent()] }));
384
+ }, scrollEnabled: props.multiline, editable: !disabled, textAlignVertical: props.multiline ? "top" : "center", ref: inputRef, placeholderTextColor: color("black60"), placeholder: getPlaceholder(), secureTextEntry: !showPassword, ...props }), renderRightComponent(), renderLeftComponent(), renderBottomComponent()] }));
385
385
  });
386
386
  const StyledInput = (0, styled_components_1.default)(react_native_1.TextInput) `
387
387
  padding: ${exports.HORIZONTAL_PADDING}px;
@@ -45,4 +45,8 @@ describe("Input", () => {
45
45
  expect(queryByLabelText("hide password button")).toBeFalsy();
46
46
  getByLabelText("show password button");
47
47
  });
48
+ it("enables scrolling when multiline is true", () => {
49
+ const { getByTestId } = (0, renderWithWrappers_1.renderWithWrappers)((0, jsx_runtime_1.jsx)(Input_1.Input, { testID: testID, multiline: true }));
50
+ expect(getByTestId(testID).props.scrollEnabled).toBe(true);
51
+ });
48
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "13.2.23",
3
+ "version": "13.2.24",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "RCT_METRO_PORT=8082 react-native run-android --port 8082",