Skip to content

Commit bbc9cd5

Browse files
Set a type attribute of pagination and arrows to "button", which prevents them from submitting a form(#12).
1 parent df473fd commit bbc9cd5

File tree

8 files changed

+1077
-834
lines changed

8 files changed

+1077
-834
lines changed

build/banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = `/*!
44
* Splide.js
55
* Version : ${ info.version }
66
* License : ${ info.license }
7-
* Copyright: 2019 ${ info.author }
7+
* Copyright: 2020 ${ info.author }
88
*/`;

dist/js/splide.js

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
22
* Splide.js
3-
* Version : 2.2.0
3+
* Version : 2.2.3
44
* License : MIT
5-
* Copyright: 2019 Naotoshi Fujita
5+
* Copyright: 2020 Naotoshi Fujita
66
*/
77
(function webpackUniversalModuleDefinition(root, factory) {
88
if(typeof exports === 'object' && typeof module === 'object')
@@ -105,7 +105,13 @@ return /******/ (function(modules) { // webpackBootstrap
105105
/***/ (function(module, __webpack_exports__, __webpack_require__) {
106106

107107
"use strict";
108+
// ESM COMPAT FLAG
108109
__webpack_require__.r(__webpack_exports__);
110+
111+
// EXPORTS
112+
__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ module_Splide; });
113+
114+
// NAMESPACE OBJECT: ./src/js/constants/states.js
109115
var states_namespaceObject = {};
110116
__webpack_require__.r(states_namespaceObject);
111117
__webpack_require__.d(states_namespaceObject, "CREATED", function() { return CREATED; });
@@ -1430,9 +1436,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
14301436
* providing some APIs to control the behavior.
14311437
*/
14321438

1433-
var splide_Splide =
1434-
/*#__PURE__*/
1435-
function () {
1439+
var splide_Splide = /*#__PURE__*/function () {
14361440
/**
14371441
* Splide constructor.
14381442
*
@@ -4581,7 +4585,7 @@ var SIZE = 40;
45814585

45824586

45834587
function createArrow(prev) {
4584-
var arrow = "<button class=\"" + classes.arrow + " " + (prev ? classes.prev : classes.next) + "\">" + ("<svg xmlns=\"" + XML_NAME_SPACE + "\"\tviewBox=\"0 0 " + SIZE + " " + SIZE + "\"\twidth=\"" + SIZE + "\"\theight=\"" + SIZE + "\">") + ("<path d=\"" + (Splide.options.arrowPath || PATH) + "\" />");
4588+
var arrow = "<button class=\"" + classes.arrow + " " + (prev ? classes.prev : classes.next) + "\" type=\"button\">" + ("<svg xmlns=\"" + XML_NAME_SPACE + "\"\tviewBox=\"0 0 " + SIZE + " " + SIZE + "\"\twidth=\"" + SIZE + "\"\theight=\"" + SIZE + "\">") + ("<path d=\"" + (Splide.options.arrowPath || PATH) + "\" />");
45854589
return domify(arrow);
45864590
}
45874591

@@ -4763,7 +4767,8 @@ var UPDATE_EVENT = 'updated.page refresh.page';
47634767
}).map(function (Slide, page) {
47644768
var li = create('li', {});
47654769
var button = create('button', {
4766-
"class": classes.page
4770+
"class": classes.page,
4771+
type: 'button'
47674772
});
47684773
append(li, button);
47694774
append(list, li);
@@ -5709,7 +5714,16 @@ var LIGHT = {
57095714
A11y: a11y
57105715
};
57115716
// CONCATENATED MODULE: ./build/module/module.js
5712-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return module_Splide; });
5717+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5718+
5719+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5720+
5721+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5722+
5723+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5724+
5725+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5726+
57135727
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
57145728

57155729
/**
@@ -5724,11 +5738,11 @@ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.crea
57245738
* Export Splide class for import from other projects.
57255739
*/
57265740

5727-
var module_Splide =
5728-
/*#__PURE__*/
5729-
function (_Core) {
5741+
var module_Splide = /*#__PURE__*/function (_Core) {
57305742
_inheritsLoose(Splide, _Core);
57315743

5744+
var _super = _createSuper(Splide);
5745+
57325746
function Splide(root, options) {
57335747
return _Core.call(this, root, options, COMPLETE) || this;
57345748
}

dist/js/splide.min.js

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

dist/js/splide.min.js.gz

266 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)