Skip to content

Changing Primary language does not change methods select list #22

Closed

Description

@Kernix13

Describe the bug

The key to the methods select list is having the primary language and data set/structure chosen. As soon as the datatype is chosen the methods list should change. But if you change the primary language but leave the data type as it was, then the methods select list does not update unless you change the data type again.

To Reproduce
Steps to reproduce the behavior:

  1. Have a primary language chosen, as well as a data type
  2. Change the primary language
  3. Submitting the form will not display any code blocks
  4. The methods list does not update

Expected behavior

The methods select should change if data type is already selected

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

Add the functionality to check for data-type in localStorage, and if valid call the functionality for the methods select list in the primary language function

Activity

  1. self-assigned this
    on Feb 17, 2026
  2. github-actions commented on Feb 17, 2026

    @github-actions

    👋 Thanks for opening this issue! I'll review it soon.

  3. Kernix13 commented on Feb 18, 2026

    @Kernix13
    OwnerAuthor

    The selected method was persisting with a change in the data structure. I had commented out the function call for createOptions in handlePrimaryCheck. I also set the selected method in localStorage to '' in createOptions

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions