Opened 6 years ago

Closed 6 years ago

#9794 closed bug (notabug)

Spinner: Cannot create on <input>s not in the DOM

Reported by: tj.vantoll Owned by:
Priority: minor Milestone: none
Component: ui.spinner Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:

Description

If you try to create a spinner on a <input> not in the DOM - e.g. $.ui.spinner( {}, "<input>" ) - it will fail because of this call to wrap().

Test case: http://jsfiddle.net/tj_vantoll/WW8jN/

Change History (2)

comment:1 Changed 6 years ago by tj.vantoll

Status: newopen

comment:2 Changed 6 years ago by tj.vantoll

Resolution: notabug
Status: openclosed

Never mind, you need to use the instance's uiSpinner property instead of element: http://jsfiddle.net/tj_vantoll/WW8jN/1/. It's been a long day.

Note: See TracTickets for help on using tickets.