mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This commit is contained in:
parent
f0fd2ef0bc
commit
55ff85aeb5
1 changed files with 2 additions and 2 deletions
|
@ -182,12 +182,12 @@ export class StepIndexPattern extends Component<StepIndexPatternProps, StepIndex
|
|||
const { target } = e;
|
||||
|
||||
let query = target.value;
|
||||
if (query.length === 1 && canAppendWildcard(query)) {
|
||||
if (query.length === 1 && !appendedWildcard && canAppendWildcard(query)) {
|
||||
query += '*';
|
||||
this.setState({ appendedWildcard: true });
|
||||
setTimeout(() => target.setSelectionRange(1, 1));
|
||||
} else {
|
||||
if (query === '*' && appendedWildcard) {
|
||||
if (['', '*'].includes(query) && appendedWildcard) {
|
||||
query = '';
|
||||
this.setState({ appendedWildcard: false });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue