@xh/hoist 79.0.0-SNAPSHOT.1765206592110 → 79.0.0-SNAPSHOT.1765207418027

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
@@ -11,6 +11,7 @@
11
11
  ### 🐞 Bug Fixes
12
12
 
13
13
  * Defaulted Highcharts font to Hoist default (--xh-font-family)
14
+ * Tweaked `GridFindField` to forward a provided `ref` to its underlying `TextInput`.
14
15
 
15
16
  ### ⚙️ Technical
16
17
 
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * Copyright © 2025 Extremely Heavy Industries Inc.
6
6
  */
7
+ import composeRefs from '@seznam/compose-react-refs/composeRefs';
7
8
  import {GridModel} from '@xh/hoist/cmp/grid';
8
9
  import {hbox, span, vbox} from '@xh/hoist/cmp/layout';
9
10
  import {hoistCmp, LayoutProps, useLocalModel} from '@xh/hoist/core';
@@ -60,7 +61,7 @@ export interface GridFindFieldProps extends TextInputProps, LayoutProps {
60
61
  export const [GridFindField, gridFindField] = hoistCmp.withFactory<GridFindFieldProps>({
61
62
  displayName: 'GridFindField',
62
63
  className: 'xh-grid-find-field',
63
- render({className, model, ...props}) {
64
+ render({className, model, ...props}, ref) {
64
65
  let [layoutProps, restProps] = splitLayoutProps(props);
65
66
  const impl = useLocalModel(GridFindFieldImplModel);
66
67
 
@@ -72,7 +73,7 @@ export const [GridFindField, gridFindField] = hoistCmp.withFactory<GridFindField
72
73
  textInput({
73
74
  model: impl,
74
75
  bind: 'query',
75
- ref: impl.inputRef,
76
+ ref: composeRefs(impl.inputRef, ref),
76
77
  commitOnChange: true,
77
78
  leftIcon: Icon.search(),
78
79
  enableClear: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "79.0.0-SNAPSHOT.1765206592110",
3
+ "version": "79.0.0-SNAPSHOT.1765207418027",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",