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
Describe the bug
When changing from (for example) the between operator and the less operator for numbers, the tree is not properly changed to reflect the new operator. Both values from the between will still be in place, and the valueSrc and valueType arrays will both have two elements. This seems to be okay for most cases, but for the format string export it will stop generating the query in this situation
To Reproduce
Select a number or date field and the between operator. Switch from the between operator to an operator with cardinality of 1 such as less than.
Expected behavior
The tree should change to reflect that the new operator has only one input and only one value source.
Screenshots
With between selected:
After switching from between to less than:
Additional context
The reason we are using the query string format at all is because there is no built-in support for custom query exports so it is being used to generate custom queries of a non-supported format. Adding this as a feature would be very helpful.
The text was updated successfully, but these errors were encountered:
rhit-gaulldj
added a commit
to rhit-gaulldj/react-awesome-query-builder
that referenced
this issue
Nov 10, 2024
- Addresses ukrbublik#1118
- Re-pulls newValue/newValueSrc/newValueType from previous state when new operator cardinality is less than current operator cardinality
rhit-gaulldj
added a commit
to rhit-gaulldj/react-awesome-query-builder
that referenced
this issue
Nov 12, 2024
Describe the bug
When changing from (for example) the between operator and the less operator for numbers, the tree is not properly changed to reflect the new operator. Both values from the between will still be in place, and the
valueSrc
andvalueType
arrays will both have two elements. This seems to be okay for most cases, but for the format string export it will stop generating the query in this situationTo Reproduce
Select a number or date field and the between operator. Switch from the between operator to an operator with cardinality of 1 such as less than.
Expected behavior
The tree should change to reflect that the new operator has only one input and only one value source.
Screenshots
With between selected:
After switching from between to less than:
Additional context
The reason we are using the query string format at all is because there is no built-in support for custom query exports so it is being used to generate custom queries of a non-supported format. Adding this as a feature would be very helpful.
The text was updated successfully, but these errors were encountered: