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

ui: Allow multiple same properties in single thing #1249

Merged

Commits on Sep 11, 2018

  1. ui: Fix boolean and switch widgets (if multiple)

    Previously UI item's ids were duplicated,
    the observed consequence is that any click on widgets
    is catched by 1st declared element.
    
    For example, a thing with 2 switches is displayed correctly,
    and click events are also triggered
    but event will be "redirected" to 1st switch only,
    this is not desired.
    
    The change is only fixing boolean widgets, others to come later.
    
    Note: It was suggested to use nested inputs,
    but unfortunately CSS can't traverse (to input)
    and get back to parent (label), so "for" facility and id must be used.
    
    Change-Id: I27ef75a95889c37224aa7da6b0fbf8e2ad57ba65
    Bug: WebThingsIO#1148
    Forwarded: WebThingsIO#1249
    Origin: https://github.com/tizenteam/gateway
    Signed-off-by: Philippe Coval <p.coval@samsung.com>
    rzr committed Sep 11, 2018
    Configuration menu
    Copy the full SHA
    2bb23a5 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2018

  1. Update switch.js

    mrstegeman authored Sep 18, 2018
    Configuration menu
    Copy the full SHA
    acf9eb8 View commit details
    Browse the repository at this point in the history