enforce a min length on jump to slide search queries

This commit is contained in:
hakimel 2023-01-17 10:30:35 +01:00
parent 60769db4ee
commit fb1fecd754
5 changed files with 5 additions and 5 deletions

2
dist/reveal.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/reveal.js vendored

File diff suppressed because one or more lines are too long

2
dist/reveal.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -75,7 +75,7 @@ export default class JumpToSlide {
indices = this.search( query );
}
if( indices && query !== '' ) {
if( indices && query !== '' && query.length > 1 ) {
this.Reveal.slide( indices.h, indices.v, indices.f );
return true;
}