framework7io / framework7io/framework7

Typescript event.detail

Open
#2,792 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
JavaScript
Stars
18.8k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

  • Framework7 version: 3.4.2
  • Platform and Target: All
Describe the bug

Typescript typing for event.detail is missing.

To Reproduce

Add some code that uses event.detail

Dom7(document).on("page:init", '.page[data-name="exercise-edit"]', function(
event: Event
) {
let page = event.detail;

Expected behavior

No error.

Actual Behavior

Type error.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Framework7 and Dom7 TypeScript event typings, then reproduce the issue with the shown page:init handler and event.detail access. Done means the event.detail expression type-checks without an error for this usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.