Skip to content

Commit

Permalink
#94 inputMode属性を付与
Browse files Browse the repository at this point in the history
  • Loading branch information
kento committed May 21, 2023
1 parent 5152bd2 commit 5525310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/form4.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ afterEach(() => {

afterAll(() => server.close())

const inputText = "メールアドレス (※必須)"
const inputText = "メールアドレス ※必須"
const buttonText = "送信する"

describe("Form4", () => {
Expand Down
3 changes: 2 additions & 1 deletion pages/form4/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Form4 = () => {
onSubmit={submit}
>
<label htmlFor="email" className={styles.label}>
メールアドレス <span>(※必須)</span>
メールアドレス <span>※必須</span>
</label>

<input
Expand All @@ -92,6 +92,7 @@ const Form4 = () => {
type="email"
className={styles.input}
placeholder="[email protected]"
inputMode="email"
onChange={handleChange}
onBlur={handleBlur}
onFocus={handleFocus}
Expand Down

0 comments on commit 5525310

Please sign in to comment.