Skip to content

Commit

Permalink
fix: label事件、样式等修复
Browse files Browse the repository at this point in the history
  • Loading branch information
liliangquan committed May 24, 2018
1 parent 7358689 commit e12cd67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/taro-components/src/components/label/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ class Label extends Nerv.Component {
}

render () {
const key = this.props.for

return <label for={key}>{this.props.children}</label>
const {...reset} = this.props
return <label {...reset}>{this.props.children}</label>
}
}

Expand Down

0 comments on commit e12cd67

Please sign in to comment.