Skip to content

Commit bddda19

Browse files
authored
Merge pull request #599 from zzgab/bugfix/smartbackspace-shuffle
fix smart backspace when shuffle
2 parents f0759c1 + 1c87f57 commit bddda19

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

dist/typed.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/typed.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typed.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typed.module.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typed.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typed.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/typed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export default class Typed {
259259
// if smartBack is enabled
260260
if (this.smartBackspace) {
261261
// the remaining part of the current string is equal of the same part of the new string
262-
let nextString = this.strings[this.arrayPos + 1];
262+
let nextString = this.strings[this.sequence[this.arrayPos + 1]];
263263
if (
264264
nextString &&
265265
curStringAtPosition === nextString.substring(0, curStrPos)

0 commit comments

Comments
 (0)