-
Notifications
You must be signed in to change notification settings - Fork 221
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
Can't open control settings after editing control prefix #4288
Comments
|
The way things work since that commit is that we delete attributes which don't exist on the view template in the XBL component. So the question is whether we are happy with that and need to add all the attribute on the template. The drawback is that we get extra attributes in the form. Some might be not desirable, like I am just wondering why we are deleting these attributes. To discuss with @avernet. |
Following discussion with @avernet: This was done so that when you change a control's appearance, you don't keep extra attributes which might be relevant to the older appearance. So a list of relevant attributes for an appearance is required. Now, specifically, |
What #1433 did when inserting the control to the dynamic editor is twofold:
It does this in
|
Implicit notions:
Right now, after #1433, the code assumes that all supported and required attributes are on the view template. |
So what should happen if you have I understand that we should probably prune unsupported attributes. However, I am not sure we should add all missing attributes. It would be better for the editor to figure that out. Unless we have another notion of the attributes being required. In short this is a bit of a headache. |
As an immediate fix, what if we only add/remove the attributes when there is an appearance change? |
What happens after adding the prefix is that the control changes its id. For example in my case it coes from
control-3-control
toxf-311
. When you try to open the the Control Settings again, Form Builder passesxf-311
and the server can't find that control in the form definition.The text was updated successfully, but these errors were encountered: