Opened 10 years ago

Closed 10 years ago

#8988 closed bug (invalid)

button initiated multi-times if multi-instance of jsp append to same html page

Reported by: deng.hui5 Owned by: deng.hui5
Priority: minor Milestone: none
Component: ui.button Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:

Description

assume a jsp page contain some html snippets, then use ajax load this page and insert into a framework html page. the first insertion, I got:

<label for="weekset1" class="ui-state-active ui-button ui-widget ui-state-default ui-button-text-only" role="button" aria-disabled="false">
    <span class="ui-button-text">Mon</span>
</label>

it's fine. after the second insertion, the first snippet is impacted and became:

<label for="weekset1" class="ui-state-active ui-button ui-widget ui-state-default ui-button-text-only" role="button" aria-disabled="false">
    <span class="ui-button-text">
         <span class="ui-button-text">Mon</span>
    </span>
</label>

and after the third insertion, the first snippet became:

<label for="weekset1" class="ui-state-active ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-hover" role="button" aria-disabled="false">
     <span class="ui-button-text">
          <span class="ui-button-text">
               <span class="ui-button-text">Mon</span>
          </span>
     </span>
</label>

Change History (3)

comment:1 Changed 10 years ago by deng.hui5

code is simple:

	$("#weekset",context).buttonset();

comment:2 Changed 10 years ago by tj.vantoll

Owner: set to deng.hui5
Status: newpending

Hi deng.hui5, thanks for taking the time to contribute to the jQuery UI project. In order to look into this issue we're going to need a reduced test case showing the problem. You can use this as a starting point - http://jsfiddle.net/tj_vantoll/RKwuk/.

comment:3 Changed 10 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.