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

Floating points are not showing in order in the dropdown field. #1272

Open
nabid-anzum opened this issue May 12, 2022 · 1 comment
Open

Floating points are not showing in order in the dropdown field. #1272

nabid-anzum opened this issue May 12, 2022 · 1 comment
Assignees
Labels

Comments

@nabid-anzum
Copy link
Contributor

nabid-anzum commented May 12, 2022

Description:
Floating points are not showing in order in the dropdown field. They are there after all the integer values. If I add these options in the dropdown field,

  • 1
  • 1.5
  • 2
  • 2.5
  • 2.75
  • 3
  • 4

Then these fields are showing in this order,

  • 1
  • 2
  • 3
  • 4
  • 1.5
  • 2.5
  • 2.75

How to reproduce:

  1. Create a post form with a dropdown field.
  2. Add the following options in that dropdown field '1', '1.5', '2', '2.5', '2.75', '3', '4'. See the screenshot https://snipboard.io/CRsqdm.jpg
  3. Save the form and place it in a page.
  4. Try post an entry to that post from frontend.
  5. When you will click the dropdown field, you will find that the options are not sorted. And floating points are showing after all the integer values. See this screenshot https://snipboard.io/AQlPKe.jpg
  6. And if you go back to backend and see the field option of that dropdown field, then you will find that its not sorted there also. See the screenshot https://snipboard.io/GP0me5.jpg

Expected Behaviour:
It should sort the dropdown options and then display. Like it should show in this order,

  • 1
  • 1.5
  • 2
  • 2.5
  • 2.75
  • 3
  • 4

System Status:
WP User Frontend: v3.5.27
WordPress: v5.9.3

@sapayth sapayth closed this as completed in 593cc74 Nov 9, 2022
sapayth added a commit that referenced this issue Nov 9, 2022
[FREE] option ordering not working as expected fixed #1272
@sapayth
Copy link
Member

sapayth commented Nov 17, 2022

The value of the radio fields keeps updating every time the form is saved. Needs to provide a different solution.

@sapayth sapayth reopened this Nov 17, 2022
@anik-fahmid anik-fahmid assigned sapayth and Rat01047 and unassigned zamandevs Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants