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

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -