Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
fix(input): space following default placeholderClass should be trimmed
Browse files Browse the repository at this point in the history
  • Loading branch information
b2nil committed Jan 19, 2021
1 parent d39acae commit 3e5c1ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ const AtInput = defineComponent({
'at-input__overlay--hidden': !inputProps.value.disabled
}))

const placeholderClasses = computed(() => `placeholder ${props.placeholderClass}`)
const placeholderClasses = computed(() => ({
'placeholder': true,
[`${props.placeholderClass}`]: Boolean(props.placeholderClass)
}))

const titleClasses = computed(() => ({
'at-input__title': true,
Expand Down

0 comments on commit 3e5c1ef

Please sign in to comment.