Project

General

Profile

Actions

Bug #22022

open

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

Added by Elaad FURREEDAN about 2 years ago. Updated 6 months 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 #1

Updated by Elaad FURREEDAN about 2 years ago

  • Status changed from New to In progress
Actions #2

Updated by Elaad FURREEDAN about 2 years ago

The difficulty here is to find a way to event.preventDefault(); on tree element when the element was fully loaded, here I try to prevent on all tree elements on creation and page load, but sometimes it occurs that a new added element was not loaded yet, so the default behavior is not prevented from his default behavior.

Work in progess here: https://github.com/ElaadF/rudder/commit/69299f2d7b4a39ae2c120dbd17ffc7b8389b5a48

Actions #3

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 7.1.8 to 7.1.9
Actions #4

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 7.1.9 to 7.1.10
Actions #5

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.1.10 to 1016
Actions #6

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 1016 to 7.2.5
Actions #7

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.2.5 to 7.2.6
Actions #8

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.6 to 7.2.7
Actions #9

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.7 to 7.2.8
Actions #10

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.8 to 7.2.9
Actions #11

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.9 to 7.2.10
Actions #12

Updated by Alexis Mousset over 1 year ago

  • Target version changed from 7.2.10 to 7.2.11
Actions #13

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.11 to 1046
Actions #14

Updated by Alexis Mousset about 1 year ago

  • Target version changed from 1046 to 7.3.8
Actions #15

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.8 to 7.3.9
Actions #16

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #17

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #18

Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #19

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #20

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #21

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.3.14 to 7.3.15
Actions #22

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 7.3.15 to 7.3.16
Actions #23

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.16 to 7.3.17
Actions

Also available in: Atom PDF