feat(SearchModal): add support to initialize the query from custom event

This commit is contained in:
Aminejv 2021-08-24 20:50:02 +01:00
parent 2e26c97ae3
commit 8aba376458

View File

@ -477,8 +477,8 @@ export class SearchModal extends React.Component {
this._handleHide();
};
_handleShow = async () => {
this.setState({ modal: true });
_handleShow = async (e) => {
this.setState({ modal: true, inputValue: e.detail.initialValue });
await this.fillLocalDirectory();
this.setState({ loading: false });
if (!this.initialized) {