Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention listbox doesn't open on right position based on the view available #2246

Open
vivinkrishna-ni opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vivinkrishna-ni
Copy link
Contributor

🐛 Bug Report

The mention listbox in nimbl-rich-text-editor does not open in the right position where the view is visible. For example, if there is no space at the bottom of the webpage, still the popup opens below.

💻 Repro or Code Sample

  1. In the storybook, position the rich text editor in such a way that a part of the editor is not visible
  2. Add @ character
  3. The popup opens

🤔 Expected Behavior

Based on the available view, the popup should open there, similar to how the combobox or select works. For example, if the bottom view is hidden, the popup should open at the top.

😯 Current Behavior

In the below case, it is expected to open the popup at the top as the bottom view is hidden.
mention-listbox-issue

💁 Possible Solution

Maybe, similar to the implementation of combobox or select in the anchored region template.

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • Version [e.g. 1.8.0]
@vivinkrishna-ni vivinkrishna-ni added bug Something isn't working triage New issue that needs to be reviewed labels Jul 9, 2024
@m-akinc m-akinc removed the triage New issue that needs to be reviewed label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Defined/Ready to Pickup
Development

No branches or pull requests

2 participants