Ticket #2961 (closed bug: invalid)
Empty() makes the field unusable.
| Reported by: | arustgi | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | core | Version: | 1.2.5 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Refer to the simple HTML file attached:
Once you call the empty function on the the drop down, you can not manipulate it it any other manner. In the attached html, once I click on the test button, i cannot manipulate the contents of the dropdown.
To reproduce:
- Click on the Test button. It will remove the content of the dropdown.
- Click on the Test2 button. It will do nothing.
Refresh the page
- Clock on the Test2 button. Verify that colorado is added to the drop down.
- Click on the Test button. It will remove the content of the dropdown.
- Click on the Test2 button agian. It will not be able to add the colorado to dropdown
Attachments
Change History
Changed 5 years ago by arustgi
-
attachment
HTMLPage1.htm
added
comment:1 Changed 5 years ago by flesler
- Status changed from new to closed
- Resolution set to invalid
Well obviously! wrapInner wraps the children inside an element. You can't "wrapInner" with no children. In that case, you are meant to simply use append.
I'll close this as invalid. Checked the source and this is the expected behavior, definitely not a bug.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Test File to reproduce behavior