Project

General

Profile

Actions

Bug #22022

open

Page is reloading when we switch from element in tree after creation

Added by Elaad FURREEDAN over 1 year ago. Updated 5 days ago.

Status:
In progress
Priority:
N/A
Category:
Web - UI & UX
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Small
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

This occurs in Elm pages: technique editor and rules

1. Create a technique/rule
2. click on another element
3. come back to the created element => the page is reloading

This is due to the way we enable link in tree element, on loading, we prevent the page to reload when we click on element that are links. But when an element is created, it's added after the tree is fully loaded, so the default reload behavior is not prevented

We should use a port in Elm on creation, something like :

    $(element-id).click(function (event) {
      event.preventDefault();
    });

Actions

Also available in: Atom PDF