Bug #22022
openPage is reloading when we switch from element in tree after creation
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();
});
Updated by Elaad FURREEDAN about 2 years ago
- Status changed from New to In progress
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
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 7.1.8 to 7.1.9
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 7.1.9 to 7.1.10
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 7.1.10 to 1016
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 1016 to 7.2.5
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.5 to 7.2.6
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.6 to 7.2.7
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.7 to 7.2.8
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.8 to 7.2.9
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.9 to 7.2.10
Updated by Alexis Mousset over 1 year ago
- Target version changed from 7.2.10 to 7.2.11
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.2.11 to 1046
Updated by Alexis Mousset about 1 year ago
- Target version changed from 1046 to 7.3.8
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.8 to 7.3.9
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.9 to 7.3.10
Updated by Vincent MEMBRÉ 12 months ago
- Target version changed from 7.3.10 to 7.3.11
Updated by Vincent MEMBRÉ 10 months ago
- Target version changed from 7.3.11 to 7.3.12
Updated by Vincent MEMBRÉ 9 months ago
- Target version changed from 7.3.12 to 7.3.13
Updated by Vincent MEMBRÉ 9 months ago
- Target version changed from 7.3.13 to 7.3.14
Updated by Vincent MEMBRÉ 7 months ago
- Target version changed from 7.3.14 to 7.3.15
Updated by Vincent MEMBRÉ 6 months ago
- Target version changed from 7.3.15 to 7.3.16
Updated by Vincent MEMBRÉ 5 months ago
- Target version changed from 7.3.16 to 7.3.17