Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#8293 closed bug (notabug)

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

Change History (2)

comment:1 Changed 8 years ago by rdworth

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

comment:2 Changed 8 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.