LearnNewsExamplesServices
Frontmatter
id4635
titleexamples googleMaps markerClick post-dialog freeze
stateClosed
labels
bug
assignees[]
createdAtAug 4, 2023, 12:36 PM
updatedAtAug 8, 2023, 8:19 AM
githubUrlhttps://github.com/neomjs/neo/issues/4635
authorgplanansky
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 8, 2023, 8:19 AM

examples googleMaps markerClick post-dialog freeze

Closed v8.1.0 bug
gplanansky
gplanansky commented on Aug 4, 2023, 12:36 PM

The examples/component/wrapper/googleMaps app freezes after a markerClick brings up a dialog: the dialog can be dismissed, but the map remains greyed out and unresponsive.

To reproduce: unzip the Neo github file, install and build all, then npm run server-start, navigate to the app and click on a marker.

Cause: the disabled config value is set to true by the onMarkerClick handler. Fix: set it to false (or just leave it at the default value of false).

examples/component/wrapper/googleMaps/MapComponent.mjs:

onMarkerClick(data) {
       let me = this,
            record = data.record.record,
            event = data.event;

       me.disabled = true;     // line 49:   change to false to prevent dialog freeze

When me.disabled = true, the "neo-disabled" class is added to the component, and that blocks Dom events per

resources/scss/src/Global.scss:

.neo-disabled {
    opacity       : v(neo-disabled-opacity);
    pointer-events: none;
}
gplanansky added the bug label on Aug 4, 2023, 12:36 PM
tobiu referenced in commit 3f2e045 - "examples googleMaps markerClick post-dialog freeze #4635 and a lot of cleanup" on Aug 8, 2023, 8:18 AM
tobiu closed this issue on Aug 8, 2023, 8:19 AM