8000 Fix ChoicePrompt ListStyle.none when set via PromptOptions (#373) · rusty0209/botbuilder-python@5c256fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c256fa

Browse files
mdrichardsonaxelsrz
authored andcommitted
Fix ChoicePrompt ListStyle.none when set via PromptOptions (microsoft#373)
* fix ChoicePrompt none style when set via options * black compat
1 parent 3b74bb2 commit 5c256fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/choice_prompt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ async def on_prompt(
121121
if self.choice_options
122122
else ChoicePrompt._default_choice_options[culture]
123123
)
124-
choice_style = options.style if options.style else self.style
124+
choice_style = (
125+
0 if options.style == 0 else options.style if options.style else self.style
126+
)
125127

126128
if is_retry and options.retry_prompt is not None:
127129
prompt = self.append_choices(

0 commit comments

Comments
 (0)
0