Closed Bug 279096 Opened 20 years ago Closed 20 years ago

There are some selected items, if I click on selected item, event 'select' isn't fire.

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 267627

People

(Reporter: rusanov, Unassigned)

Details

Attachments

(1 file)

1.35 KB, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122

There are multi selected items in listbox, if I click on selected item, event
'select' isn't fire.

I think this error, you check  item.selected ('if (!this.selected) {'), no is
not testing of selected items count

      <!-- If there is no modifier key, we select on mousedown, not
           click, so that drags work correctly. -->
      <handler event="mousedown">
      <![CDATA[
        if (!event.ctrlKey && !event.shiftKey && !event.metaKey) {
          if (!this.selected) {
            parentNode.selectItem(this);
          }
          parentNode.currentItem = this;
        }
      ]]>


see attachment

Reproducible: Always
Attached file ListBox sample
select all tree listitem and click on some selected item.

*** This bug has been marked as a duplicate of 267627 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: