-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] qweb: throw error if t-component not used on a node t
Before this rev, using t-component on a div (for example) node would silently ignore the div and replace it by the root node of the component. A way to improve this was to create an extra div node and to put the component inside it. However, it raised questions: what do we do with other attributes set on this tag? Do we apply them on the div, or on the component? In addition, some of them only make sense on the component (e.g. props), so we have to detect them. Whatever we would have decided, it wouldn't have been obvious from the user point of view, so we chose not to support it, and we thus now raise an error in this case. Closes #487.
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters