redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Spinner not working in .5 step increments

Open mattrace opened this issue 12 years ago • 4 comments

I can not get the spinner working in .5 step increments.I can get it to work with the slider, but not the spinner. My understanding is that the spinner should be able to work in decimal increments. I pasted my code below that I'm using. Any help would be much appreciated.

array(
                'id'            => 'propertyBaths',
                'type'          => 'spinner',
                'title'         => __('Property Bathrooms', 'jsb'),
                'subtitle'      => __('The number of bathrooms in this property.', 'jsb'),
                'default'       => 0,
                'min'           => 0,
                'step'          => .5,
                'max'           => 100,
                'display_value' => 'label'
 ),

mattrace avatar Oct 28 '14 03:10 mattrace

The jQuery UI spinner doesn't support floating points. Our slider uses a different library that support them.

kprovance avatar Oct 28 '14 04:10 kprovance

http://jqueryui.com/spinner/#decimal

Any chance this will eventually come to Redux?

mattrace avatar Oct 28 '14 04:10 mattrace

@mattrace Seems like we need to update our jqueryui... Care to do it and send us a pull request?

dovy avatar Oct 28 '14 04:10 dovy

Or give @dovy 10 mins and he'll see the folly with the code and push a fix in 3.3.9.5. ;)

dovy avatar Oct 28 '14 04:10 dovy