Browse Source

Fix keyboard navigation selector.

Jeff Ong 4 năm trước cách đây
mục cha
commit
b07f34e68e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      seedlet/assets/js/primary-navigation.js

+ 1 - 1
seedlet/assets/js/primary-navigation.js

@@ -39,7 +39,7 @@
 			} 
 			var modal, elements, selectors, lastEl, firstEl, activeEl, tabKey, shiftKey, escKey;
 
-			modal = document.querySelector( '.${ id }-navigation' );
+			modal = document.querySelector( '.' + id + '-navigation' );
 			selectors = "input, a, button";
 			elements = modal.querySelectorAll( selectors );
 			elements = Array.prototype.slice.call( elements );