Closed loveorigami closed 5 years ago
Would you please check if it's fixed in dev-master?
I am update project with dev-master. Error is not fixed
In v.2.0.13 user switch works fine.
In v.2.0.13 user switch works fine.
Thanks, temporary rollback to 2.0.13. Looks like this issue's update ready to release shortly.
@hoaaah it's not ready for release. It's ready for adoption. That means anyone can take it, fix it and send a pull request.
in yii-debug 2.0.13 userswitch.js
$('#debug-userswitch__filter').on("click", "tbody tr", function(event) {
$('#debug-userswitch__set-identity #user_id').val($(this).data('key'));
$('#debug-userswitch__set-identity').submit();
event.stopPropagation();
});
target element TR
in yii-debug 2.1.7
on(document.getElementById('debug-userswitch__filter'), 'click', function (e) {
if (e.target.tagName.toLowerCase() === 'tr' && e.target.parentElement.tagName.toLowerCase() === 'tbody') {
document.getElementById('user_id').value = this.dataset.getDataAttr('key');
document.getElementById('debug-userswitch__set-identity').submit();
e.stopPropagation();
}
});
target element TD
and event is broken
After update I can't switching from panel - TypeError: Cannot read property 'addEventListener' of null