@itwin/itwinui-react 2.11.4 → 2.11.5

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.11.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1329](https://github.com/iTwin/iTwinUI/pull/1329): Fixed an issue where the visually hidden `FileUploadCard.Input` was inadvertently showing when focused.
8
+
3
9
  ## 2.11.4
4
10
 
5
11
  ### Patch Changes
@@ -109,7 +109,7 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
109
109
  }
110
110
  }, [id, inputId, setInputId]);
111
111
  return (React.createElement(React.Fragment, null,
112
- React.createElement(index_js_1.VisuallyHidden, { as: 'input', type: 'file', onChange: (0, index_js_1.mergeEventHandlers)(onChange, (e) => {
112
+ React.createElement(index_js_1.VisuallyHidden, { as: 'input', type: 'file', unhideOnFocus: false, onChange: (0, index_js_1.mergeEventHandlers)(onChange, (e) => {
113
113
  const _files = Array.from(e.currentTarget.files || []);
114
114
  onFilesChange === null || onFilesChange === void 0 ? void 0 : onFilesChange(_files);
115
115
  setInternalFiles(_files);
@@ -80,7 +80,7 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
80
80
  }
81
81
  }, [id, inputId, setInputId]);
82
82
  return (React.createElement(React.Fragment, null,
83
- React.createElement(VisuallyHidden, { as: 'input', type: 'file', onChange: mergeEventHandlers(onChange, (e) => {
83
+ React.createElement(VisuallyHidden, { as: 'input', type: 'file', unhideOnFocus: false, onChange: mergeEventHandlers(onChange, (e) => {
84
84
  const _files = Array.from(e.currentTarget.files || []);
85
85
  onFilesChange === null || onFilesChange === void 0 ? void 0 : onFilesChange(_files);
86
86
  setInternalFiles(_files);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "2.11.4",
3
+ "version": "2.11.5",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",