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

[Dropdown] Using serialized JSON as value prevent the select value from being updated. #3005

Open
thoughtsunificator opened this issue Feb 21, 2024 · 1 comment
Labels
state/awaiting-investigation Anything which needs more investigation state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/bug Any issue which is a bug or PR which fixes a bug

Comments

@thoughtsunificator
Copy link

thoughtsunificator commented Feb 21, 2024

Bug Report

Steps to reproduce

  1. Selection Option A
  2. Submit

Expected result

Select value is should be updated according to the option value.

Actual result

Select value is not updated according to the option value.

Testcase

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css" rel="stylesheet">
    <title>Demo</title>
</head>
<body>
    <form method="get" accept-charset="utf-8">
        <select name="select" id="select">
            <option value='{"foo": "bar"}'>Option A</option>
            <option value='{"foo2": "bar2"}'>Option B</option>
            <option value='1'>Option C</option>
        </select>
        <button>Submit</button>
    </form>
    <script>$("#select").dropdown({
        debug: true,
        verbose: true
    })</script>
    </body>
</html>

Screenshot (if possible)

2024-02-21_17-53
2024-02-21_17-52

Version

2.9.3 on Firefox 122.0.1

@thoughtsunificator thoughtsunificator added state/awaiting-investigation Anything which needs more investigation state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/bug Any issue which is a bug or PR which fixes a bug labels Feb 21, 2024
@thoughtsunificator thoughtsunificator changed the title [DropDown] using serialized JSON as value prevent the select from being updated. [DropDown] using serialized JSON as value prevent the select value from being updated. Feb 21, 2024
@thoughtsunificator thoughtsunificator changed the title [DropDown] using serialized JSON as value prevent the select value from being updated. [Dropdown] Using serialized JSON as value prevent the select value from being updated. Feb 21, 2024
@thoughtsunificator
Copy link
Author

I don't see the investigation being that hard, can we get some update on this?

If you need additional information, I'll be happy to provide them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state/awaiting-investigation Anything which needs more investigation state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

No branches or pull requests

1 participant