You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have something selected and we want to change the styling, going to the style dropdown menu and clicking on it, deselects the selected text. Even though the menu is such that it would open up on hover, the rest of the buttons in the toolbar do not have this problem and it creates a bad user experience if it is clicked upon.
Expected Behavior
Clicking on the dropdown menu with the selected text should not deselect the selection.
Current Behavior
Clicking on the menu with selected text deselects the text.
Possible Solution
Adding a preventDefault() to the menu would fix this issue.
Steps to Reproduce
Select any text in the text editor.
Go to the dropdown menu with the selected text and click on the menu.
The selected text would be deselected.
Context (Environment)
Desktop
OS: [e.g. macOS]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 0.22.15]
The text was updated successfully, but these errors were encountered:
d-e-v-esh
added a commit
to d-e-v-esh/web-components
that referenced
this issue
Mar 11, 2021
Bug Report 🐛
When we have something selected and we want to change the styling, going to the style dropdown menu and clicking on it, deselects the selected text. Even though the menu is such that it would open up on hover, the rest of the buttons in the toolbar do not have this problem and it creates a bad user experience if it is clicked upon.
Expected Behavior
Clicking on the dropdown menu with the selected text should not deselect the selection.
Current Behavior
Clicking on the menu with selected text deselects the text.
Possible Solution
Adding a
preventDefault()
to the menu would fix this issue.Steps to Reproduce
Context (Environment)
Desktop
The text was updated successfully, but these errors were encountered: