Wappler Version : 6.3.0
Operating System : 14.2.1 (23C71)
Server Model: Node.js
Database Type: None
Hosting Type: Local
Expected behavior
What do you think should happen?
The number of dropzones that appear should be the same as the amount of repeats in the repeatchildren
Actual behavior
What actually happens?
There are multiple dropzone instances remaining after the repeatchildren number is reduced.
How to reproduce
See the attached video for a test case showing the failing behaviour. In the test case, firstly there is a repeatchildren containing a header element, along with a dropzone element. This is followed by another repeatchildren which only contains a header element. They both use the same variable number in the repeatchildren. You will see when the number is lowered, the repeatchildren containing the dropzones, does not repeat correctly.
FYI - I have an app that uses multiple dynamic dropzones and have just found this issue. It would be great if you could put a fix in for this asap. Thank you!
Hi Ben, thanks for your response. Apologies, I don’t think I detailed the bug specifics very well. The problem occurs when you dynamically lower the number for the repeatchildren i.e in your example, it starts at 1, you change it to 5, then if you change it back to 1 you will see that the number of dropzones is incorrect. Here’s a video of it using your example:
Screen Recording 2024-02-27 at 09.54.11
Here’s another video where I decrement the number by 1 each time. You can see the number of dropzones going wild:
Screen Recording 2024-02-27 at 09.47.50
I’m going to re-open this as a bug if that’s ok, as it’s currently breaking the current design of my latest app.
@George do you know if this is a quick one to fix? If so, might it be possible to push out a fix this week?
Hi @patrick, I’ve switched off Beta as shown below and retested. The issue no longer happens, however the dropzone has reverted back to a standard file-picker component. So I’m assuming this means the dropzone component is a Beta component?
Hi team, I’ve attempted to test the fix but after updating Wappler I’m getting the following parsing error. It seems to be coming from the dmxAppConnect.js file update.