Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Disable button in loading state too
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed May 7, 2019
1 parent eea3632 commit 3c60747
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Button/main.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<template>
<button class="button" :class="classes" :disabled="disabled" :type="type" v-on="$listeners">
<button
class="button"
:class="classes"
:disabled="disabled || loading"
:type="type"
v-on="$listeners"
>
<slot></slot>
<div class="button__icon" v-if="$slots.icon">
<slot name="icon"></slot>
Expand Down

0 comments on commit 3c60747

Please sign in to comment.