Precision in rating fields

Hi there,

I’m pretty confused by the rating field and its precision … I just can’t get it to work properly.
I want to create a rating field that goes from 0 to 10 in 0.5 increments.
So I thought that this would be the right setting.

{
“mininmum”: 0,
“maximum”: 10,
“precision”: 0.5
}

And effectively the field is displayed with 10 stars. But clicking on them returns very weird results. It seems that

  • the selected value gets doubled and rounded to the desired precision
  • that 0 isn’t an option
  • and that every odd number can’t get a .5 precision.

So with the above setting you can select the values 2, 2.5, 3, 4, 4.5, 5, 6, 6.5 … 19, 20, 20.5, 21 on the displayed 10 stars :thinking:.

So either I’m getting something terribly wrong with the settings or there is something wrong in the implementation.
I tried to figure out the code and why this happens, but honestly I don’t get it …

Can anyone help me here, I’m lost.
Thanks

Just noticed that I spelled ‘minimum’ wrong as ‘mininmum’ … and thought that this would somehow fix everything.
But it resulted in even weirder behavior than before and it turns out that ‘mininmum’ is in fact the required spelling …