adobe / adobe/aem-core-email-components

Segmentation Component - Javascript exception in full screen edit dialog

Open
#231 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
16
Forks
11
PR merge metrics
No merged PRs in 30d

Description

When the edit dialog of the Segmentation Component is opened on a small viewport, in full screen mode the following exception is thrown:

```
Uncaught TypeError: Cannot read properties of undefined (reading 'parentNode')
at SegmentEditor._bindEvents (clientlibs.lc-4fa217dc28adac96d495f9a8eddb8c5c-lc.js:338:40)
at SegmentEditor._init (clientlibs.lc-4fa217dc28adac96d495f9a8eddb8c5c-lc.js:166:22)
at new SegmentEditor (clientlibs.lc-4fa217dc28adac96d495f9a8eddb8c5c-lc.js:69:14)
at HTMLElement. (clientlibs.lc-4fa217dc28adac96d495f9a8eddb8c5c-lc.js:443:17)
at Function.each (jquery.lc-676f843463ac676e1918c97ea7dc1a20-lc.js:371:19)
at jQuery.fn.init.each (jquery.lc-676f843463ac676e1918c97ea7dc1a20-lc.js:137:17)
at HTMLDocument. (clientlibs.lc-4fa217dc28adac96d495f9a8eddb8c5c-lc.js:440:46)
at HTMLDocument.dispatch (jquery.lc-676f843463ac676e1918c97ea7dc1a20-lc.js:5232:27)
at elemData.handle (jquery.lc-676f843463ac676e1918c97ea7dc1a20-lc.js:4884:28)
at Object.trigger (jquery.lc-676f843463ac676e1918c97ea7dc1a20-lc.js:5136:12)
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the Segmentation Component edit dialog on a small viewport in full-screen mode, then inspect SegmentEditor._bindEvents at the stack-trace location in the clientlibs JavaScript. Confirm the fix by reopening the dialog and verifying that the parentNode exception no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.