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

Set initial value of multiple values list to default value (if available) #56

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barafael
Copy link
Contributor

@barafael barafael commented Dec 4, 2022

Hi :)

I noticed that currently, if a multiple_values field has a default value, this value does not appear initially in the list of arguments (which initially is empty). But when clicking the "Reset to default" button, the default value is entered as the first entry in the multiple_values sequence.

This change pre-populates the multiple_values vector with the default value, if one is given. On "Reset to default", this state is restored. The default value can also still be edited and removed with the - button.

Let me know what you think :)

@barafael
Copy link
Contributor Author

barafael commented Jan 1, 2023

I realize this may be suboptimal default behaviour. Converting to draft to prevent merging.

@barafael barafael marked this pull request as draft January 1, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant