Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form field component ttl picker not initially enabling #13177

Merged
merged 4 commits into from
Nov 17, 2021

Conversation

zofskeez
Copy link
Contributor

The TtlPicker2 instance in the FormField component was missing the initialEnabled argument which was causing the toggle to be unchecked and the value to be hidden initially. Toggling the input would reveal the set value.
image
After adding the argument the initial state is properly reflected.
image

@vercel vercel bot temporarily deployed to Preview – vault November 17, 2021 05:08 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 17, 2021 05:13 Inactive
Copy link
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Remember the labels (UI) and then a milestone label of 1.9.1

@zofskeez
Copy link
Contributor Author

Thanks @Monkeychip. After looking into your comment on Slack I noticed that the toggle was enabled for the default 0s value which I fixed and added a test.

@zofskeez zofskeez added the ui label Nov 17, 2021
@zofskeez zofskeez added this to the 1.9.1 milestone Nov 17, 2021
@zofskeez zofskeez merged commit 0fd79f1 into main Nov 17, 2021
@zofskeez zofskeez deleted the ui/automate-secret-deletion-state-bug branch November 17, 2021 17:21
zofskeez added a commit that referenced this pull request Nov 18, 2021
* fixes issue with ttl picker not initially enabling in form field component

* adds changelog entry

* updates test

* updates initial ttl toggle state for default 0s value
zofskeez added a commit that referenced this pull request Nov 19, 2021
* fixes issue with ttl picker not initially enabling in form field component

* adds changelog entry

* updates test

* updates initial ttl toggle state for default 0s value
qk4l pushed a commit to qk4l/vault that referenced this pull request Feb 4, 2022
* fixes issue with ttl picker not initially enabling in form field component

* adds changelog entry

* updates test

* updates initial ttl toggle state for default 0s value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants