Opened 5 years ago

#19038 new defect

Dojo bug: Uncaught TypeError: Cannot read property 'className' of null

Reported by: GibboK Owned by:
Priority: undecided Milestone: tbd
Component: DnD Version: 1.12.2
Keywords: Cc:
Blocked By: Blocking:


Dojo bug: Uncaught TypeError?: Cannot read property 'className' of null

To reproduce this issue follow the steps on this page:,console,output

  1. Click on dijit/form/Select on the left side, dijit/popup will popup with a list of values.
  2. Keep dijit/popup open with the list of values.
  3. Double click on an item inside 'dojo/dnd/Source' on right side.
  4. An error in console appears:

Uncaught TypeError: Cannot read property 'className' of null

Basically, it is not possible to correctly destroying dijit/form/Select when its dijit/popup is open, if User double click on an 'dojo/dnd/Source' item.

Observations: I have noticed that the event focusin is not being fired on body when user mouse click an item in a dojo/dnd/Source.

This is oberservable at: Line 118 from dojo repo focus.js

When instead on other dojo widgets, for example dijit/form/Button, the focusin event is being fired properly.

If focusin is not detected properly, function _onBlur in file _HasDropDown is not being called causing this error.

I kindly ask you if you could verify this issue and meanwhile provide a workaround if available.

Thanks for your support.

Attachments (1)

dojo-issue-menu.html (3.5 KB) - added by GibboK 5 years ago.
Minimal example

Download all attachments as: .zip

Change History (1)

Changed 5 years ago by GibboK

Attachment: dojo-issue-menu.html added

Minimal example

Note: See TracTickets for help on using tickets.