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

In version 0.32.0 all radio buttons are checked #751

Closed
nip1904 opened this issue Dec 30, 2024 · 1 comment
Closed

In version 0.32.0 all radio buttons are checked #751

nip1904 opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nip1904
Copy link

nip1904 commented Dec 30, 2024

Introduction

If you use radio buttons in version 0.32.0 alle buttons are marked as checked. So the last one wins
In version 0.31.0 it behaves correctly.

To Reproduce

List of steps to reproduce the behavior. Include the sql file you are using and the eventual relevant parts of your database schema

SELECT
        'form'          as component,
        'POST'          as method;

SELECT
        'priority'      as name,
        'None'          as label,
        'radio'         as type,
        'None'          as value,
        2               as width,
        TRUE            as checked;
SELECT
        'priority'      as name,
        'Low'           as label,
        'radio'         as type,
        2               as width,
        'Low'           as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'Medium'        as label,
        'radio'         as type,
        2               as width,
        'Medium'        as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'High'          as label,
        'radio'         as type,
        2               as width,
        'High'          as value,
        FALSE           as checked;


SELECT
        'debug'         as component;
SELECT
        "key", 
        "value" 
FROM 
        json_each(sqlpage.variables('post'));
SELECT 
        "version" as key,
        sqlpage.version() as value;

-- END
![v31](https://github.com/user-attachments/assets/49ddc2ca-7970-42f8-9011-22b65ca0bb3c)
![v32](https://github.com/user-attachments/assets/9b205060-3953-4cc6-9d62-e803310ef7e1)
![html_source](https://github.com/user-attachments/assets/02b8b76a-0bb9-47d8-a3b7-aa2691f44f7c)

Actual behavior

After following these steps, what happened ?
If you saw an error on the command line or inside your page, then paste it here

your error message here

Screenshots

If applicable, add screenshots to help explain your problem.

Expected behavior

A clear and concise description of what you expected to happen.

Version information

  • OS:
  • Database [e.g. SQLite, Postgres]
  • SQLPage Version [found when hovering the default footer of pages]:

Additional context

Add any other context about the problem here.

@nip1904 nip1904 added the bug Something isn't working label Dec 30, 2024
@lovasoa
Copy link
Collaborator

lovasoa commented Dec 30, 2024

Thank you very much for the quick report! I'll make a release with a fix ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants