소스 검색

Bug Fix: Remove position instead of setting "static".

NaotoshiFujita 5 년 전
부모
커밋
82829ca841
5개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      dist/js/splide.min.js
  2. 1 1
      package.json
  3. 1 1
      src/js/components/layout/resolvers/horizontal.js
  4. 1 1
      src/js/components/layout/resolvers/vertical.js
  5. 1 1
      src/js/utils/dom.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/js/splide.min.js


+ 1 - 1
package.json

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

+ 1 - 1
src/js/components/layout/resolvers/horizontal.js

@@ -74,7 +74,7 @@ export default ( Splide, Components, options ) => {
 			const firstSlide = Elements.slides[ 0 ];
 			const width      = options.fixedWidth;
 			const height     = options.height || options.fixedHeight;
-			const position   = firstSlide.style.position || 'static';
+			const position   = firstSlide.style.position;
 
 			applyStyle( firstSlide, { position: 'absolute' } );
 

+ 1 - 1
src/js/components/layout/resolvers/vertical.js

@@ -71,7 +71,7 @@ export default ( Splide, Components, options ) => {
 			applyStyle( track, { paddingTop: unit( top ), paddingBottom: unit( bottom ) } );
 
 			const firstSlide = Elements.slides[ 0 ];
-			const position   = firstSlide.style.position || 'static';
+			const position   = firstSlide.style.position;
 			const { fixedWidth: fixedW, fixedHeight: fixedH, height } = options;
 
 			applyStyle( firstSlide, { position: 'absolute' } );

+ 1 - 1
src/js/utils/dom.js

@@ -68,7 +68,7 @@ export function create( tag, attrs ) {
 export function applyStyle( elm, styles ) {
 	if ( elm ) {
 		each( styles, ( value, prop ) => {
-			elm.style[ prop ] = value || null;
+			elm.style[ prop ] = value || '';
 		} );
 	}
 }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.