aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx2
-rw-r--r--src/client/views/search/SearchBox.tsx7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index be19fc50f..d19c9f07d 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -1785,7 +1785,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
);
}
get pannableContents() {
- this.incrementalRender();
+ setTimeout(this.incrementalRender);
return (
<CollectionFreeFormPannableContents
Document={this.Document}
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index 5dc4f5550..c8caff9fa 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -55,9 +55,6 @@ export class SearchBox extends ViewBoxBaseComponent<SearchBoxProps>() {
@observable _deletedDocsStatus: boolean = false;
@observable _onlyEmbeddings: boolean = true;
- /**
- * This is the constructor for the SearchBox class.
- */
constructor(props: SearchBoxProps) {
super(props);
makeObservable(this);
@@ -69,11 +66,11 @@ export class SearchBox extends ViewBoxBaseComponent<SearchBoxProps>() {
* the search panel, the search input box is automatically selected. This allows the user to
* type in the search input box immediately, without needing clicking on it first.
*/
- componentDidMount = action(() => {
+ componentDidMount() {
if (this._inputRef.current) {
this._inputRef.current.focus();
}
- });
+ }
/**
* This method is called when the SearchBox component is about to be unmounted. When the user