[FIX] config: make enableTransitions work on components (#773)

Fun: the transition is handled at two different places, once for dom
nodes, once for components.  Obviously, I only applied the change to the
first case and forgot about the second.
This commit is contained in:
Géry Debongnie
2020-10-20 17:30:08 +02:00
committed by GitHub
parent 4e8e9dee3e
commit 392dc0131a
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -85,8 +85,9 @@ Note that if you work with Typescript, the `trigger` method is generic on the ty
You can then describe the type of the event, so you will see typing errors...
```typescript
this.trigger<MyCustomPayload>('my-custom-event', payload);
this.trigger<MyCustomPayload>("my-custom-event", payload);
```
```typescript
myCustomEventHandler(ev: OwlEvent<MyCustomPayload>) { ... }
```
+2
View File
@@ -227,7 +227,9 @@ QWeb.addDirective({
if (name.startsWith("t-on-")) {
events.push([name, value]);
} else if (name === "t-transition") {
if (QWeb.enableTransitions) {
transition = value;
}
} else if (!name.startsWith("t-")) {
if (name !== "class" && name !== "style") {
// this is a prop!