Skip to content

Commit

Permalink
fix bug caused by copy
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Nov 29, 2023
1 parent 847a487 commit 1c66330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion questionary/prompts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def __init__(

def _is_selected(self, choice: Choice):
if isinstance(self.default, Choice):
compare_default = self.default == choice
compare_default = self.default.value == choice.value
else:
compare_default = self.default == choice.value
return choice.checked or compare_default and self.default is not None
Expand Down

0 comments on commit 1c66330

Please sign in to comment.