Skip to content

Commit

Permalink
intrduce placehholder attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Jan 26, 2024
1 parent 08b8108 commit d49fd8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export function TextAreaBlockEdit( {
setAttributes,
context,
}: TextAreaBlockEditProps ) {
const { align, allowedFormats, direction, label, helpText } = attributes;
const { align, allowedFormats, direction, label, helpText, placeholder } =
attributes;
const blockProps = useWooBlockProps( attributes, {
style: { direction },
} );
Expand Down Expand Up @@ -93,6 +94,7 @@ export function TextAreaBlockEdit( {
} ) }
dir={ direction }
allowedFormats={ allowedFormats }
placeholder={ placeholder }
/>
</div>
</BaseControl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type TextAreaBlockEditAttributes = ProductEditorBlockAttributes & {
label: string;
property: string;
helpText?: string;
placeholder?: string;
};

export type TextAreaBlockEditProps =
Expand Down

0 comments on commit d49fd8c

Please sign in to comment.