javascript - Onclick handler not firing on YUI MenuButton MenuItem when inside a YUI DataTable header -


so 1 super-specific, i'm hoping have insight.

i've been tasked adding inline-filter buttons header of yui datatable. it's yui 2.7, i'm stuck i'm working within confines of framework. it's oracle service cloud/ rightnow cx customer portal widget.

if add buttons other element onclick event fires , works expected. if attach buttons headers menuitem click event interpreted click header , sortcolumn function fired. it's not can call stoppropagation click handler never called @ all.

i've created jsfiddle show. if swap out container on line 152/153 can make work/not work. second menu works, btw. :-)

https://jsfiddle.net/cyberneticiandave/b1wh7oht/

var omenubutton = new yahoo.widget.button({   type: "menu",   label: "",   name: "mymenubutton",   menu: amenubuttonmenu,   // here - swap container make work or not work   //container: labeldiv,   container: parentelement,   onclick: {     fn: onmenuclick,     obj: {       column: i,       instance:     }   } }); 

really hoping can @ least explain what's happening, bonus points if can find way fix it!

thanks in advance!


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -