enforce a min length on jump to slide search queries
This commit is contained in:
parent
60769db4ee
commit
fb1fecd754
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -75,7 +75,7 @@ export default class JumpToSlide {
|
||||||
indices = this.search( query );
|
indices = this.search( query );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( indices && query !== '' ) {
|
if( indices && query !== '' && query.length > 1 ) {
|
||||||
this.Reveal.slide( indices.h, indices.v, indices.f );
|
this.Reveal.slide( indices.h, indices.v, indices.f );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue