Skip to content

Commit efb59b6

Browse files
committed
.disable() has been removed in Ladda v2
1 parent 93e39a1 commit efb59b6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/LaddaButton.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ class LaddaButton extends Component {
7575
if (props.loading !== this.props.loading) {
7676
if (props.loading) {
7777
this.laddaInstance.start()
78-
} else if (props.disabled) {
79-
// .stop removes the attribute "disabled"
80-
// .disable calls .stop then adds the attribute "disabled"
81-
// see https://github.com/hakimel/Ladda/blob/master/js/ladda.js
82-
this.laddaInstance.disable()
8378
} else {
8479
this.laddaInstance.stop()
8580
}

0 commit comments

Comments
 (0)