javascript - TooltipDialog inside DropDownButton not working for custom widget -


used example https://dojotoolkit.org/reference-guide/1.10/dijit/form/dropdownbutton.html

<div data-dojo-type="dijit/form/dropdownbutton">   <span>register</span>   <div data-dojo-type="dijit/tooltipdialog">      <label for="name">name:</label> <input data-dojo-type="dijit/form/textbox" id="name" name="name"><br>      <label for="hobby">hobby:</label> <input data-dojo-type="dijit/form/textbox" id="hobby" name="hobby"><br>      <button data-dojo-type="dijit/form/button" type="submit">save</button>   </div> </div> 

and put custom widget. on click error occurs:

uncaught typeerror: cannot read property 'on' of null 

error occurs custom widget. using code snipped on other pages works fine.

the answer custom widget overwriting startup() function without this.inherited(arguments).

looks dropdownbutton magic heppening there..


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -