mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-22 21:45:56 +03:00
feat(SearchModal): add support to initialize the query from custom event
This commit is contained in:
parent
2e26c97ae3
commit
8aba376458
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user