Commit b965a22c133396dedf7dba99831fc80ae72cca61
Committed by
Igor Kulikov
1 parent
2cc6203c
fix #1866 and #1896 by avoid unwanted events propagation stop on HTML… (#1901)
* fix #1866 and #1896 by avoid unwanted events propagation stop on HTML elements inside HTML widgets * Revert changes into package-lock.json
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -439,13 +439,13 @@ export default function WidgetController($scope, $state, $timeout, $window, $ocL | @@ -439,13 +439,13 @@ export default function WidgetController($scope, $state, $timeout, $window, $ocL | ||
439 | } | 439 | } |
440 | 440 | ||
441 | function elementClick(event) { | 441 | function elementClick(event) { |
442 | - event.stopPropagation(); | ||
443 | var e = event.target || event.srcElement; | 442 | var e = event.target || event.srcElement; |
444 | if (e.id) { | 443 | if (e.id) { |
445 | var descriptors = getActionDescriptors('elementClick'); | 444 | var descriptors = getActionDescriptors('elementClick'); |
446 | if (descriptors.length) { | 445 | if (descriptors.length) { |
447 | for (var i = 0; i < descriptors.length; i++) { | 446 | for (var i = 0; i < descriptors.length; i++) { |
448 | if (descriptors[i].name == e.id) { | 447 | if (descriptors[i].name == e.id) { |
448 | + event.stopPropagation(); | ||
449 | var entityInfo = getActiveEntityInfo(); | 449 | var entityInfo = getActiveEntityInfo(); |
450 | var entityId = entityInfo ? entityInfo.entityId : null; | 450 | var entityId = entityInfo ? entityInfo.entityId : null; |
451 | var entityName = entityInfo ? entityInfo.entityName : null; | 451 | var entityName = entityInfo ? entityInfo.entityName : null; |