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

fixes bug default values not shown in interactive inputs #669

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function InteractiveRadios({
}
className="flex flex-row mb-2 gap-4 items-center">
<input
defaultChecked={defaultCheckedValue.includes(inputItem.id)}
defaultChecked={defaultCheckedValue.includes(inputItem.option)}
type={inputType}
name={name + contentId}
id={contentId + inputItem.id + (selectedLevel ? "holarchy" : "storyline") + "input"}
Expand Down
2 changes: 1 addition & 1 deletion src/main/blocks/storyline_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class InteractiveInputBlock(blocks.StructBlock):
)
target_value = blocks.CharBlock(
required=False,
help_text="Type a target value if this value needs to be added to the current and all underlying sections. Type the value exactly as it's shown on the website page. Seperate multiple values by a comma (no whitespaces)",
help_text="Type a target value if this value needs to be added to all underlying sections. Type the value exactly as it's shown on the website page. Seperate multiple values by a comma (no whitespaces)",
)

def get_api_representation(self, value, context=None):
Expand Down
Loading