Skip to content

Next Button onClick handler #231

@127

Description

@127

Hi, it would be nice to have a next question button click handler in addition!
Now it can be done with sth like

  useEffect(() => {
    const handleClick = (event: any) => {
      if (event.target.classList.contains("nextQuestionBtn")) {
        console.log(". nextQuestionBtn pressed");
      }
    };

    document.addEventListener("click", handleClick);
    return () => document.removeEventListener("click", handleClick);
  }, []);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions