Skip to content

Commit

Permalink
サブタイプの入力項目からからプレーンな入力項目変更した時戻らない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
1000-x-t30 committed Sep 25, 2024
1 parent 798cf34 commit 21a0b4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json/input-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"text": {
"label": "テキスト",
"subTypes": [
{ "value": "", "label": "--" },
{ "value": "text", "label": "--" },
{ "value": "tel", "label": "電話" },
{ "value": "number", "label": "数値" },
{ "value": "email", "label": "メール" },
Expand All @@ -12,7 +12,7 @@
"textarea": {
"label": "テキストエリア",
"subTypes": [
{ "value": "", "label": "--" },
{ "value": "textarea", "label": "--" },
{ "value": "lite-editor", "label": "ライトエディター" }
]
},
Expand Down
1 change: 1 addition & 0 deletions src/components/html/Textarea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function Textarea(props) {
{isValue ? `{${item.name}}` : ''}
</textarea>
<input type="hidden" name="field[]" defaultValue={item.name} />
<OptionValidator item={item} />
</>
)}

Expand Down

0 comments on commit 21a0b4e

Please sign in to comment.