We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acaaafd + 471374b commit 7d648b3Copy full SHA for 7d648b3
packages/blueprintjs-renderers/src/renderers.tsx
@@ -165,15 +165,13 @@ export const renderers: TreeRenderProps = {
165
</form>
166
),
167
168
- renderSearchInput: props => (
169
- <div className={cx('rct-tree-search-input-container')}>
170
- <InputGroup
171
- autoFocus
172
- {...(props.inputProps as any)}
173
- placeholder="Search..."
174
- />
175
- </div>
176
- ),
+ renderSearchInput: props => {
+ const { ref, ...inputProps } = {...props.inputProps};
+ return (
+ <div className={cx('rct-tree-search-input-container')}>
+ <InputGroup intputRef={ref} {...(inputProps as any)} placeholder="Search..." />
+ </div>
+ )},
177
178
renderDepthOffset: 1,
179
};
0 commit comments