- Issue created by @purencool
At times, jQuery would not access the correct class on the . Instead, it would look for the child HTML class called "placeholder."
A possible solution would be to use currentTarget.
$(once('clickTabsAction','body'))
.on('click', '.log_tabs > a', function (e) { <---- I added > to the click function.
// Do not follow the link.
e.preventDefault();
e.stopPropagation();
var log_type = $(e.currentTarget).attr('class'); <---- Changed this to e.currentTarget
update_log(log_type);
The result now is the user can access "work log" and others tabs with greater better responses. Before it may work.
Active
1.0
Code