Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • claudiobosticco
    replied
    SmartClient Version: v13.1p_2025-02-23/AllModules Development Only (built 2025-02-23)

    I see it's fixed, thank you very much.

    Leave a comment:


  • Isomorphic
    replied
    hi Claudio - yes, that's definitely a bug - we've fixed it for tomorrow's builds.

    Leave a comment:


  • claudiobosticco
    started a topic ToggleSwitch.valueChanged problem

    ToggleSwitch.valueChanged problem

    SmartClient Version: v13.1p_2025-02-21/AllModules Development Only (built 2025-02-21)

    Firefox, Chrome on MacOS

    Hello, I was expecting the valueChanged event on ToggleSwitch to be triggered only by user interaction (like FormItem.changed), but I noticed that it also fires when calling ToggleSwitch.setValue and even on creation when using value or defaultValue. Is this a bug?

    testcase:

    Code:
    isc.VLayout.create({
        membersMargin: 5,
        members: [
            isc.Header.create({title: "Standalone Toggle"}),
            isc.ToggleSwitch.create({
                ID: "toggleSwitch",
                value: true,
                valueChanged: function (newValue, oldValue) {
                    isc.logEcho("valueChanged")
                }
            })
        ]
    });
Working...
X