Fuse Preview will crash when updating an Observable on a TextInput element that has the IsPassword property set to True.

Issue: Fuse Preview will crash when updating an Observable on a TextInput element that has the IsPassword property set to True.

The below code recreats the outlined issue:

<Javascript>
var Observable = require('FuseJS/Observable');

var iAmValue = Observable("");

var valueChanged = function (args) {
    if(args.value.length > 4) {
        iAmValue.value = args.value.substring(0, 4)
    }
}
</Javascript>

<TextInput ux:Name="iAmInput" ValueChanged="{valueChanged}" Value="{iAmValue}" IsPassword="True" />

However it will work if the IsPassword property is set to False, e.g.:

<Javascript>
var Observable = require('FuseJS/Observable');

var iAmValue = Observable("");

var valueChanged = function (args) {
    if(args.value.length > 4) {
        iAmValue.value = args.value.substring(0, 4)
    }
}
</Javascript>
<TextInput ux:Name="iAmInput" ValueChanged="{valueChanged}" Value="{iAmValue}" IsPassword="False" />

Error outputted:

Unrooting happening after the mixers update phase Fuse.Controls.StackPanel
Unrooting happening after the mixers update phase Fuse.Controls.Text
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Unrooting happening after the mixers update phase Fuse.Controls.TextInput
Unrooting happening after the mixers update phase Fuse.Controls.PlainTextEdit
Unrooting happening after the mixers update phase Fuse.Controls.NativeViewHost
Unrooting happening after the mixers update phase Fuse.Controls.FallbackTextEdit.TextEditVisual
Unrooting happening after the mixers update phase Fuse.Controls.FallbackTextEdit.TextWindow
Unrooting happening after the mixers update phase Fuse.Controls.Panel
Unrooting happening after the mixers update phase Fuse.Controls.Rectangle
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual
Unrooting happening after the mixers update phase Fuse.Controls.Panel
Unrooting happening after the mixers update phase Fuse.Controls.Text
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Unrooting happening after the mixers update phase Fuse.Controls.Rectangle
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual
Unrooting happening after the mixers update phase Fuse.Controls.Text
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.Panel
Unrooting happening after the mixers update phase Fuse.Controls.Panel
Rooting happening after the mixers update phase Fuse.Controls.StackPanel
Rooting happening after the mixers update phase Fuse.Controls.Image
Rooting happening after the mixers update phase Fuse.Controls.Graphics.ImageVisual
Rooting happening after the mixers update phase Fuse.Controls.Text
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.Text
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.StackPanel
Rooting happening after the mixers update phase Fuse.Controls.Button
Rooting happening after the mixers update phase Fuse.BasicTheme.ButtonText
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.Rectangle
Rooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual
Rooting happening after the mixers update phase Fuse.Controls.Button
Rooting happening after the mixers update phase Fuse.BasicTheme.ButtonText
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.Rectangle
Rooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual
Unrooting happening after the mixers update phase Outracks.Simulator.FakeApp
Unrooting happening after the mixers update phase Fuse.Controls.Panel
Unrooting happening after the mixers update phase Fuse.Controls.Panel
Unrooting happening after the mixers update phase Fuse.Controls.StackPanel
Unrooting happening after the mixers update phase Fuse.Controls.Image
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.ImageVisual
Unrooting happening after the mixers update phase Fuse.Controls.Text
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Unrooting happening after the mixers update phase Fuse.Controls.Text
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Unrooting happening after the mixers update phase Fuse.Controls.StackPanel
Unrooting happening after the mixers update phase Fuse.Controls.Button
Unrooting happening after the mixers update phase Fuse.Controls.Rectangle
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual
Unrooting happening after the mixers update phase Fuse.BasicTheme.ButtonText
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Unrooting happening after the mixers update phase Fuse.Controls.Button
Unrooting happening after the mixers update phase Fuse.Controls.Rectangle
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual
Unrooting happening after the mixers update phase Fuse.BasicTheme.ButtonText
Unrooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Outracks.Simulator.FakeApp
Rooting happening after the mixers update phase Fuse.Controls.Panel
Rooting happening after the mixers update phase Fuse.Controls.Panel
Rooting happening after the mixers update phase Fuse.Controls.StackPanel
Rooting happening after the mixers update phase Fuse.Controls.Image
Rooting happening after the mixers update phase Fuse.Controls.Graphics.ImageVisual
Rooting happening after the mixers update phase Fuse.Controls.Text
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.Text
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.StackPanel
Rooting happening after the mixers update phase Fuse.Controls.Button
Rooting happening after the mixers update phase Fuse.BasicTheme.ButtonText
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.Rectangle
Rooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual
Rooting happening after the mixers update phase Fuse.Controls.Button
Rooting happening after the mixers update phase Fuse.BasicTheme.ButtonText
Rooting happening after the mixers update phase Fuse.Controls.Graphics.DefaultTextVisual
Rooting happening after the mixers update phase Fuse.Controls.Rectangle
Rooting happening after the mixers update phase Fuse.Controls.Graphics.RectangleVisual

file

Hi, I’m unable to reproduce this issue. Which version of Fuse do you have? You can find it in the tray icon or by doing fuse --version. Are you on Windows or OS X?

Fuse version 0.9.7 (build 5544) on Windows 10 Appologies for not supplying that on the initial post.