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

Fix select custom value for queryselect widget #2413

Merged
merged 3 commits into from
Oct 28, 2023

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR fixes an issue in the queryselect widget when the option allow_user_value is set and the user wants to select the new typed in value.

Current behavior before PR

It is not possible to select the typed in value when existing results are displayed in the dropdown.

Desired behavior after PR is merged

A new row is added to explicitly select the new value

Queryselect custom value

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

Copy link
Member

@xispa xispa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, maybe better to display the "custom" in a color other than red. Future!

Captura de 2023-10-28 21-04-55

@xispa xispa merged commit 53a5280 into 2.x Oct 28, 2023
2 checks passed
@xispa xispa deleted the fix-queryselect-select-user-value branch October 28, 2023 19:05
@ramonski
Copy link
Contributor Author

Excellent, maybe better to display the "custom" in a color other than red. Future!

Captura de 2023-10-28 21-04-55

Thanks!
Yes, the red color is unfortunately a side-effect in this case. It is actually used to highlight broken links in reference widget.

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

Successfully merging this pull request may close these issues.

2 participants