Bug Tracker

Modify

Ticket #2961 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

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:

  1. Click on the Test button. It will remove the content of the dropdown.
  2. Click on the Test2 button. It will do nothing.

Refresh the page

  1. Clock on the Test2 button. Verify that colorado is added to the drop down.
  2. Click on the Test button. It will remove the content of the dropdown.
  3. Click on the Test2 button agian. It will not be able to add the colorado to dropdown

Attachments

HTMLPage1.htm Download (972 bytes) - added by arustgi 5 years ago.
Test File to reproduce behavior

Change History

Changed 5 years ago by arustgi

Test File to reproduce behavior

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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.