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

Category filter options disappear when used in previous filters #381

Closed
tomas-reznak opened this issue Feb 15, 2023 · 0 comments · Fixed by #479
Closed

Category filter options disappear when used in previous filters #381

tomas-reznak opened this issue Feb 15, 2023 · 0 comments · Fixed by #479
Assignees
Labels
type: bug Something isn't working

Comments

@tomas-reznak
Copy link

What happened?

When trying to filter e. g. using 3 categories through Category filter component, strange behavior appears.

When categories use the same options (typically for number-based options) and an option is being selected within category in the first filter, it is then not offered for selection in the second category filter (and so on for the other levels).

Animation3

To summarize this example in a table:

Category Applied filters Given options Expected options Ok?
Quarter none [=0, =1, =2, =3] [=0, =1, =2, =3] yes
Midterm Quarter=1 [=0] [=0, =1] no
Priority Quarter=1 & Midterm=0 [=2, =3, =4, =5] [=0, =1, =2, =3, =4, =5] no

What type of frontend frameware are you seeing the problem on?

React

Which version of iX do you use?

v1.3.0

Code to produce this issue.

const [filter] = useState<FilterState>();

const [categories] = useState({
	ID_1: {
		label: "Quarter",
		options: ["0", "1", "2", "3"],
	},
	ID_2: {
		label: "Midterm",
		options: ["0", "1"],
	},
	ID_3: {
		label: "Priority",
		options: ["0", "1", "2", "3", "4", "5"],
	}
});
@tomas-reznak tomas-reznak added the triage We discuss this topic in our internal weekly label Feb 15, 2023
@nuke-ellington nuke-ellington added type: bug Something isn't working component: core and removed triage We discuss this topic in our internal weekly labels Feb 17, 2023
@github-project-automation github-project-automation bot moved this to Jour Fix in Siemens iX Feb 23, 2023
@goncalosard goncalosard self-assigned this Apr 3, 2023
@danielleroux danielleroux moved this from Jour Fix to In Progress in Siemens iX Apr 4, 2023
@goncalosard goncalosard linked a pull request Apr 4, 2023 that will close this issue
14 tasks
@github-project-automation github-project-automation bot moved this from In Progress to Done in Siemens iX Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants