fabulous-dev / Fabulous

Declarative UI framework for cross-platform mobile & desktop apps, using MVU and F# functional programming
https://fabulous.dev
Apache License 2.0
1.13k stars 122 forks source link

Fix unmount of properties #871

Closed TimLariviere closed 3 years ago

TimLariviere commented 3 years ago

The target control passed to Unmount was the parent instead of the real target.

Was match currContentOpt with ValueNone -> () | ValueSome viewElement -> viewElement.Unmount(target)

Need to be match currContentOpt with ValueNone -> () | ValueSome viewElement -> viewElement.Unmount(target.Content)