# Basic Switch Bug

**URL:** <https://forums.fusetools.com/t/basic-switch-bug/6332>\
**Category:** Bug Reports\
**Created:** [October 8, 2016, 9:57pm UTC](https://forums.fusetools.com/t/basic-switch-bug/6332 "2016-10-08T21:57:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fahad](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@Fahad](https://forums.fusetools.com/u/Fahad)\
**Post date:** [October 8, 2016, 9:57pm UTC](https://forums.fusetools.com/t/basic-switch-bug/6332/1 "2016-10-08T21:57:19Z")

</div>

```auto
<App>
    <JavaScript>
        var Observable = require("FuseJS/Observable");

        var test = Observable(false);
        
        module.exports = {
            test: test,
        }
    </JavaScript>

    <ClientPanel>
        <StackPanel Alignment="Center">
            <Text Value="{test}" TextAlignment="Center" Dock="Top" />
            <Basic.Switch Value="{test}" Alignment="Center" Dock="Top" />
        </StackPanel>
    </ClientPanel>

</App>

```

- If you bind the `<Basic.Switch>` to an observable boolean and switch it **twice** , then it crashes.
- If you do this with a regular `<Switch>` then there’s no problem

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [October 9, 2016, 1:06pm UTC](https://forums.fusetools.com/t/basic-switch-bug/6332/2 "2016-10-09T13:06:22Z")

</div>

Hi,

I’m unable to reproduce this bug. Your example works fine here. Please provide a complete test project + steps to reproduce.

---

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [October 9, 2016, 3:33pm UTC](https://forums.fusetools.com/t/basic-switch-bug/6332/3 "2016-10-09T15:33:41Z")

</div>

I’ve reported this to @Vegard (on slack) a while back, there might be an internal ticket for this already. If you slide it it keeps working, its when you tap it over and over.

This is all you need to reproduce the error:

```auto
<App>
  <Basic.Switch />
</App>

```

---

<div class="post-metadata">

**Author:** ![Vegard\_Strand\_Lende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vegard_strand_lende/32/349_2.png) [@Vegard\_Strand\_Lende](https://forums.fusetools.com/u/Vegard_Strand_Lende)\
**Post date:** [October 12, 2016, 10:53am UTC](https://forums.fusetools.com/t/basic-switch-bug/6332/4 "2016-10-12T10:53:08Z")

</div>

Hi!

Thanks for reporting. This issue has been fixed in fuse 0.27 🙂

---

<div class="post-metadata">

**Author:** ![Fahad](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@Fahad](https://forums.fusetools.com/u/Fahad)\
**Post date:** [October 12, 2016, 7:58pm UTC](https://forums.fusetools.com/t/basic-switch-bug/6332/5 "2016-10-12T19:58:01Z")

</div>

Works in new update, cheers
