@ebay/ui-core-react 3.3.0 → 3.3.1

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.
@@ -63,7 +63,7 @@ function useFloatingLabel(_a) {
63
63
  var ref = _a.ref, inputId = _a.inputId, className = _a.className, disabled = _a.disabled, label = _a.label, inputSize = _a.inputSize, inputValue = _a.inputValue, placeholder = _a.placeholder, invalid = _a.invalid;
64
64
  var _internalInputRef = react_1.useRef(null);
65
65
  var inputRef = function () { return ref || _internalInputRef; };
66
- var _c = react_1.useState(true), isFloating = _c[0], setFloating = _c[1];
66
+ var _c = react_1.useState(Boolean(inputValue)), isFloating = _c[0], setFloating = _c[1];
67
67
  var _d = react_1.useState(false), shouldAnimate = _d[0], setAnimate = _d[1];
68
68
  var _e = react_1.useState(false), isFocused = _e[0], setFocused = _e[1];
69
69
  var selectFirstOptionText = react_1.useRef("");
@@ -60,7 +60,7 @@ var EbayTextbox = function (_a) {
60
60
  disabled: rest.disabled,
61
61
  label: floatingLabel,
62
62
  inputSize: inputSize,
63
- inputValue: controlledValue,
63
+ inputValue: controlledValue || value,
64
64
  placeholder: placeholder,
65
65
  invalid: invalid
66
66
  }), label = _k.label, Container = _k.Container, onFloatingLabelBlur = _k.onBlur, onFloatingLabelFocus = _k.onFocus, ref = _k.ref, floatingLabelPlaceholder = _k.placeholder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Skin components build off React",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",