Skip to content

Commit

Permalink
fix: keepLastRipple prop default value
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed May 9, 2022
1 parent b742b33 commit 2b93473
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-touch-ripple",
"version": "4.0.0-rc.2",
"version": "4.0.0-rc.3",
"description": "Touch ripple component for Vue",
"keywords": [
"vue touch ripple",
Expand Down
7 changes: 5 additions & 2 deletions src/ripple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
onBeforeUnmount,
TransitionGroup,
h,
toRaw,
ExtractPropTypes
} from 'vue'
import { DEFAULT_CONFIG, useGlobalConfig } from './config'
Expand All @@ -17,7 +16,11 @@ const props = {
opacity: Number,
duration: Number,
transition: String,
keepLastRipple: Boolean
keepLastRipple: {
type: Boolean,
// HACK: for Vue prop Boolean type default value
default: undefined
}
}

export type Props = ExtractPropTypes<typeof props>
Expand Down

0 comments on commit 2b93473

Please sign in to comment.