Bug #22022
open
Page is reloading when we switch from element in tree after creation
Added by Elaad FURREEDAN about 2 years ago.
Updated 5 months ago.
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();
});
- Status changed from New to In progress
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
- Target version changed from 7.1.8 to 7.1.9
- Target version changed from 7.1.9 to 7.1.10
- Target version changed from 7.1.10 to 1016
- Target version changed from 1016 to 7.2.5
- Target version changed from 7.2.5 to 7.2.6
- Target version changed from 7.2.6 to 7.2.7
- Target version changed from 7.2.7 to 7.2.8
- Target version changed from 7.2.8 to 7.2.9
- Target version changed from 7.2.9 to 7.2.10
- Target version changed from 7.2.10 to 7.2.11
- Target version changed from 7.2.11 to 1046
- Target version changed from 1046 to 7.3.8
- Target version changed from 7.3.8 to 7.3.9
- Target version changed from 7.3.9 to 7.3.10
- Target version changed from 7.3.10 to 7.3.11
- Target version changed from 7.3.11 to 7.3.12
- Target version changed from 7.3.12 to 7.3.13
- Target version changed from 7.3.13 to 7.3.14
- Target version changed from 7.3.14 to 7.3.15
- Target version changed from 7.3.15 to 7.3.16
- Target version changed from 7.3.16 to 7.3.17
Also available in: Atom
PDF