Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit 749eb7d

Browse files
committed
v3.4.6
1 parent 6d91bd1 commit 749eb7d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/js/react-bootstrap-switch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ========================================================================
2-
* react-bootstrap-switch - v3.4.4
2+
* react-bootstrap-switch - v3.4.6
33
* https://github.com/Julusian/react-bootstrap-switch
44
* ========================================================================
55
* Copyright 2012-2015 Julian Waller
@@ -319,14 +319,14 @@
319319
$label = $(this.refs.label);
320320
return $label.on({
321321
"click": function(e) {
322+
e.preventDefault();
322323
return e.stopPropagation();
323324
},
324325
"mousedown.bootstrapSwitch touchstart.bootstrapSwitch": (function(_this) {
325326
return function(e) {
326327
if (_this.state.dragStart || _this.state.disabled || _this.state.readonly) {
327328
return;
328329
}
329-
e.preventDefault();
330330
e.stopPropagation();
331331
_this.setState({
332332
indeterminate: false,

dist/js/react-bootstrap-switch.min.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-bootstrap-switch",
33
"description": "Turn checkboxes and radio buttons into toggle switches.",
4-
"version": "3.4.4",
4+
"version": "3.4.6",
55
"keywords": [
66
"react",
77
"bootstrap",

src/coffee/react-bootstrap-switch.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ module.exports = React.createClass
248248
$label = $(@refs.label)
249249
$label.on
250250
"click": (e) ->
251+
e.preventDefault()
251252
e.stopPropagation()
252253

253254
"mousedown.bootstrapSwitch touchstart.bootstrapSwitch": (e) =>
254255
return if @state.dragStart or @state.disabled or @state.readonly
255256

256-
e.preventDefault()
257257
e.stopPropagation()
258258

259259
@setState

0 commit comments

Comments
 (0)