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

Yes/No question shows Yes/Yes when the swap option is enabled #8346

Closed
missakation opened this issue May 31, 2024 · 5 comments · Fixed by #8351
Closed

Yes/No question shows Yes/Yes when the swap option is enabled #8346

missakation opened this issue May 31, 2024 · 5 comments · Fixed by #8351
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@missakation
Copy link

Are you requesting a feature, reporting a bug or asking a question?

Reporting a bug

What is the current behavior?

When I have a boolean component and the option "Swap the order of yes and no" is set to yes, it shows yes/yes when I select yes.

What is the expected behavior?

It should show yes/no

Screenshot 2024-05-31 at 8 15 03 PM

@andrewtelnov
Copy link
Member

@missakation Please provide your boolean question json.

Thank you,
Andrew

@missakation
Copy link
Author

@missakation Please provide your boolean question json.

Thank you, Andrew

{ type: "boolean", name: "is_enabled", minWidth: "100px", startWithNewLine: false, title: "Is Enabled", hideNumber: true, defaultValue: "true", },

@andrewtelnov
Copy link
Member

@missakation It works fine to me.

Thank you,
Andrew

@missakation
Copy link
Author

@missakation It works fine to me.

Thank you, Andrew

Oh sorry try this:

  {
   "type": "boolean",
   "name": "is_enabled",
   "minWidth": "100px",
   "startWithNewLine": false,
   "title": "Is Enabled",
   "hideNumber": true,
   "defaultValue": "true",
   "swapOrder": true
  },
  
  The swap option should be on

@andrewtelnov
Copy link
Member

@missakation Yes, there is the issue here.

Thank you,
Andrew

@andrewtelnov andrewtelnov added bug user issue An issue or bug reported by users labels May 31, 2024
@andrewtelnov andrewtelnov modified the milestone: v1.10.7 May 31, 2024
@tsv2013 tsv2013 self-assigned this Jun 3, 2024
tsv2013 pushed a commit that referenced this issue Jun 3, 2024
andrewtelnov added a commit that referenced this issue Jun 3, 2024
Fixed #8346 - Yes/No Component show yes/yes when swap option is on
@RomanTsukanov RomanTsukanov changed the title Yes/No Component show yes/yes when swap option is on. Yes/No question shows Yes/Yes when the swap option is enabled Jun 6, 2024
@OlgaLarina OlgaLarina added this to the v1.11.1 milestone Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants