Skip to content

Commit

Permalink
Remove required attribute from title input in printing widget (#317, #…
Browse files Browse the repository at this point in the history
  • Loading branch information
julkuh committed May 22, 2024
1 parent 5623b5e commit c927f60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-candles-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@open-pioneer/printing": patch
---

Remove 'required' attribute from title input since it is not actually required
1 change: 0 additions & 1 deletion src/packages/printing/Printing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export const Printing: FC<PrintingProps> = (props) => {
onChange={(event) => {
setTitle(event.target.value);
}}
isRequired
autoFocus // eslint-disable-line jsx-a11y/no-autofocus
/>
</HStack>
Expand Down
2 changes: 0 additions & 2 deletions src/packages/printing/__snapshots__/Printing.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ exports[`should successfully create a printing component 1`] = `
title
</label>
<input
aria-required="true"
class="chakra-input css-1cjy4zv"
data-theme="light"
id="field-:r0:"
placeholder="input.placeholder"
required=""
value=""
/>
</div>
Expand Down

0 comments on commit c927f60

Please sign in to comment.