[forest] Ability to pass handlers array with configurations for each handler
- Dominant language
- TypeScript
- Stars
- 4.9k
- Forks
- 280
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 7
Description
## Proposal
At the moment for spec/h config we have this kind of handler param
```typescript
handler?:
| {[domEvent: string]: Event}
| {
config: {
passive?: boolean
capture?: boolean
prevent?: boolean
stop?: boolean
}
on: {[domEvent: string]: Event}
}
```
Would be nice if it will be possible to pass an array of handlers with configurations for each event instead of just only 1.
## Use case
```typescript
h('input', {
handler: [
{
config: {
stop: true
},
on: { click: someEvent }
},
{
on: { focus: otherEvent }
}
]
});
```
Contributor guide
Assessment
This issue has not been assessed yet.