Skip to content

Commit

Permalink
fix: resolve issue with secret input saving additional data (#6196)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind bug
/area ui
/milestone 2.17.x

#### What this PR does / why we need it:

修复 Secret Input 保存之后会多出 Secret Form 中数据的问题。

#### Which issue(s) this PR fixes:

Fixes #6193 

#### Special notes for your reviewer:

测试方式:

1. 在保存 Secret 的表单选项前,打开一次编辑 Secret 的对话框。
2. 保存数据,检查内容是否多出了其他数据。

#### Does this PR introduce a user-facing change?

```release-note
None
```
  • Loading branch information
ruibaby committed Jun 29, 2024
1 parent d2a03dc commit bae53f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/formkit/inputs/secret/components/SecretForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function onSubmit(data: SecretFormState) {
type="form"
:model-value="defaultValue"
name="secret-form"
ignore
:config="{ validationVisibility: 'submit' }"
@submit="onSubmit"
>
Expand Down

0 comments on commit bae53f5

Please sign in to comment.