Skip to content

Commit

Permalink
fix: input class with object syntax (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Dec 1, 2020
1 parent c369e73 commit 5e399b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export default {
placeholder: this.placeholder,
...this.inputAttr,
};
const { value, ...attrs } = props;
const { value, class: className, ...attrs } = props;
const events = {
keydown: this.handleInputKeydown,
focus: this.handleInputFocus,
Expand All @@ -459,7 +459,7 @@ export default {
};
const input = this.renderSlot(
'input',
<input value={value} {...{ attrs, on: events }} ref="input" />,
<input value={value} class={className} {...{ attrs, on: events }} ref="input" />,
{
props,
events,
Expand Down

0 comments on commit 5e399b4

Please sign in to comment.