Skip to content

Commit

Permalink
fix(form): 设置 errorMessageAlign="right" 错误文案无法右对齐 (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Dec 7, 2023
1 parent 0b9fdc2 commit 8687074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/formitem/formitem.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class FormItem extends React.Component<
className="nut-form-item__body__tips"
style={{
textAlign: errorMessageAlign,
display: item?.length ? 'inherit' : 'none',
display: item?.length ? 'initial' : 'none',
}}
>
{item?.[0]?.message}
Expand Down

0 comments on commit 8687074

Please sign in to comment.