-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving a named element produces a syntax error #5195
Comments
Moving that element inside the same parent can be done with Olivier's PR. It will usually fail when you move an element with an ID into some other parent. The id is used somewhere, and tht turns into an syntax error when the id is gone. The best approach is probably to now allow moving anything with an id. Or at least not allow moving it into a new parent maybe? Or maybe we could copy the Element with an id instead of moving it? I wonder how to make it obvious what happens when we get into those special modes of copying/moving based on context. |
Moving/removing an element with an id shouldn't be a problem. The problem is moving elements into another scope. if either the element itself uses it, or it is used and ends up in another scope. So it is a problem if
When disallowing, a message should explain why. |
It would be nice to visualise the area of the scope. So a repeated element itself isn't movable, a child (or grand-child) of the repeated element should be movable within the area of the scope element's area. Everything outside could perhaps be visually masked (like grey'ed out), but definitely not accepted as drop location. |
Steps to reproduce:
Text
element in the hello world a name:Observe how the
Text { ... }
element is moved, but thenew-name-given :=
part is left in the original place, resulting in a syntax error.The text was updated successfully, but these errors were encountered: