@iota/apps-ui-kit 0.7.1 → 0.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iota/apps-ui-kit",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "sideEffects": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,6 +62,7 @@ export const TextArea = forwardRef<HTMLTextAreaElement, TextFieldBaseProps>(func
62
62
  isResizeEnabled,
63
63
  required,
64
64
  isContentVisible,
65
+ defaultValue,
65
66
  ...textareaProps
66
67
  },
67
68
  ref,
@@ -101,7 +102,8 @@ export const TextArea = forwardRef<HTMLTextAreaElement, TextFieldBaseProps>(func
101
102
  isInputContentVisible && isResizeEnabled ? 'resize-y' : 'resize-none',
102
103
  !isInputContentVisible && 'not-visible select-none text-transparent',
103
104
  )}
104
- value={isInputContentVisible ? value : ''}
105
+ defaultValue={isInputContentVisible && defaultValue ? defaultValue : undefined}
106
+ value={isInputContentVisible && value ? value : undefined}
105
107
  {...textareaProps}
106
108
  />
107
109
  {!isInputContentVisible && (