Skip to main content

Search and Top Navigation

#8293 closed bug (notabug)

Opened May 03, 2012 12:43PM UTC

Closed May 03, 2012 12:53PM UTC

Last modified May 03, 2012 01:17PM UTC

negative values in spinner.js are always allowed

Reported by: dadtimo Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:
Description

Sorry for selecting the wrong component, but the component is not released already.

I am using the spinner module of the new 1.9UI version, because all todo points of the roadmap are done for this.

now to the bug:

  • you can write anything you want in the spinner (alphabetic values too)
  • if your minimum value is positive, you can still type a 'minus' symbol to make it negative

sry for the bad english i am from germany ^^

Attachments (0)
Change History (2)

Changed May 03, 2012 12:53PM UTC by rdworth comment:1

resolution: → invalid
status: newclosed
Sorry for selecting the wrong component, but the component is not released already.

We use bugs.jqueryui.com only for components that are in a stable release. For in-development components, we collect feedback on our wiki. I added the two issues you raised as comments on http://wiki.jqueryui.com/w/page/12138077/Spinner

Changed May 03, 2012 01:17PM UTC by scottgonzalez comment:2

Neither of these are bugs. Spinner does not provide a mask or clear on blur. It's up to you to determine how to handle invalid values. You can validate the value by calling .spinner( "value" ); if it returns null, then the value is not valid.