浏览代码

fix code block auto-animate bug that caused unmatched lines to appear without fading in

Hakim El Hattab 2 年之前
父节点
当前提交
227f90fa00
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/controllers/autoanimate.js

+ 1 - 1
js/controllers/autoanimate.js

@@ -504,7 +504,7 @@ export default class AutoAnimate {
 				} );
 
 				// Line numbers
-				this.findAutoAnimateMatches( pairs, pair.from, pair.to, '.hljs .hljs-ln-line[data-line-number]', node => {
+				this.findAutoAnimateMatches( pairs, pair.from, pair.to, '.hljs .hljs-ln-numbers[data-line-number]', node => {
 					return node.getAttribute( 'data-line-number' );
 				}, {
 					scale: false,