Skip to content

Commit

Permalink
fix: fix #747
Browse files Browse the repository at this point in the history
  • Loading branch information
solarjoker committed Oct 31, 2019
1 parent 9f4adf1 commit cc6e5cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions components/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class Button extends Component {
onClick,
href,
style,
children
children,
target
} = this.props
const isDisabled = disabled || loading
const classes = classNames(
Expand All @@ -72,7 +73,7 @@ class Button extends Component {
: `hi-btn--type--${type}`
)

const restProps = { href, style, onClick, disabled: isDisabled }
const restProps = { href, style, onClick, disabled: isDisabled, target }

deprecatedPropsCheck(this.deprecatedProps, this.props, 'Button')

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hi-ui/hiui",
"version": "1.5.12",
"version": "1.5.13",
"description": "HIUI for React",
"scripts": {
"test": "node_modules/.bin/standard && node_modules/.bin/stylelint --config .stylelintrc 'components/**/*.scss'",
Expand Down

0 comments on commit cc6e5cb

Please sign in to comment.