cheminfo / cheminfo/nmrium

Issue with space event bubbling

Open
#3,814 7 comments 0 reactions 1 assignee Claimed by @hamed-musallam View on GitHub
Dominant language
TypeScript
Stars
80
Forks
34
Avg merge
2d 9h
Merged PRs (30d)
36

Description

@targos We need your advice on how to solve this issue.

Currently we can toggle to show / hide custom atom labels. If the last thing we did is to click on such a toggle the element is 'focussed'.

Now if we go hover an atom and press 'space' the event will number the atom but also invert the toggle button. How should we prevent the bubbling of the event so that it does not leave the molecule ?

![Image](https://github.com/user-attachments/assets/7e468d74-a9af-471d-8b8f-01760caa61ae)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.