Browse Source

Bug Fix: Arrow elements were not available before mount.

NaotoshiFujita 5 years ago
parent
commit
2b50f5b899
3 changed files with 5 additions and 6 deletions
  1. 1 1
      dist/js/splide.min.js
  2. 1 1
      package.json
  3. 3 4
      src/js/components/arrows/index.js

File diff suppressed because it is too large
+ 1 - 1
dist/js/splide.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@splidejs/splide",
-  "version": "1.0.7",
+  "version": "1.0.8",
   "description": "Splide is a lightweight and powerful slider without any dependencies.",
   "author": "Naotoshi Fujita",
   "license": "MIT",

+ 3 - 4
src/js/components/arrows/index.js

@@ -47,12 +47,11 @@ export default ( Splide, Components, name ) => {
 	 */
 	const Arrows = {
 		/**
-		 * Required when the arrows option is true or arrow elements were found.
+		 * Required when the arrows option is true.
 		 *
-		 * @return {boolean} - True if the option is true or arrow elements were found.
+		 * @type {boolean}
 		 */
-		required: Splide.options.arrows
-			|| ( Components.Elements.arrows && Components.Elements.arrows.prev && Components.Elements.arrows.next ),
+		required: Splide.options.arrows,
 
 		/**
 		 * Called when the component is mounted.

Some files were not shown because too many files changed in this diff