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

hiding value for boolean/null comparators #82

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mrname
Copy link

@mrname mrname commented Jun 28, 2018

A little bit of a hack here, but does successfully hide the "value" input element when istrue, isfalse, and isnull operators are chosen. Since it technically populates the value of the element and then hides it, there will be a small annoyance if you switch it back to a field that requires input (you would see the value we stuck in there, i.e. - True/False). However, this seems less annoying than having to type "null" in the box when creating these fields.

@coveralls
Copy link

coveralls commented Jun 28, 2018

Coverage Status

Coverage remained the same at 96.06% when pulling 4c0f246 on mrname:issue_8_no_value_for_bool_and_null into b243e06 on modlinltd:develop.

aatrubilin added a commit to aatrubilin/django-advanced-filters that referenced this pull request Apr 19, 2021
Copy link
Member

@asfaltboy asfaltboy left a comment

Choose a reason for hiding this comment

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

Thanks! This does looks reasonable, but I hesitate to merge any frontend changes before introducing our e2e test suite and adding a test case for this scenario.

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

Successfully merging this pull request may close these issues.

3 participants