Skip to content

Commit

Permalink
fix: TextArea showCount should not be interactive (ant-design#29245)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Feb 5, 2021
1 parent 0fc2729 commit a64056e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions components/form/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@

.@{ant-prefix}-input-textarea-show-count {
&::after {
position: absolute;
bottom: -22px;
width: 100%;
margin-bottom: -22px;
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions components/input/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@

&-textarea {
&-show-count::after {
display: block;
float: right;
color: @text-color-secondary;
text-align: right;
white-space: nowrap;
content: attr(data-count);
pointer-events: none;
}
}
}
Expand Down

0 comments on commit a64056e

Please sign in to comment.