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

Regex Filter is not functional #289

Open
RonMcKay opened this issue Dec 7, 2021 · 3 comments
Open

Regex Filter is not functional #289

RonMcKay opened this issue Dec 7, 2021 · 3 comments

Comments

@RonMcKay
Copy link

RonMcKay commented Dec 7, 2021

It seems like the regex filter option is not functional as one can only select existing values in the "Value" field. Typing in a regex filter is not possible, which makes the option non functional.
It would be awesome if this could be fixed as the filter is especially useful for fields like "Notes" e.g.

Omniboard version: 2.16.0
NodeJS version: 16.13.1

@vivekratnavel
Copy link
Owner

Hi @RonMcKay,

The value field also accepts any input along with auto-suggested inputs. You just have to select the option by clicking on the value. Please post a screenshot if it doesn't accept any value.

Screen Recording 2021-12-07 at 1 44 06 AM

@RonMcKay
Copy link
Author

RonMcKay commented Dec 7, 2021

You are right!
It is just that my list of auto-suggested inputs was very long which made the original input invisible due to the fact that it is listed at the end.
What makes it kind of misleading is that if you type in a regex expression and hit enter it selects the first suggested value. This gives the sense of not being able to input any regex expressions.

May it be possible to show the regex at the top of the suggested value list? This way when you hit enter you automatically select the regex instead of some already existing value.

@vivekratnavel
Copy link
Owner

Hi @RonMcKay,

That is possible. We use react select for the dropdown and it supports a prop to make the create option listed "first".

You will need to add this "createOptionPosition" prop to AsyncCreatableSelect here.

I am happy to accept a PR for this change. You can refer to the developer doc to start Omniboard locally and test changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants