Putting the document inside a View.Map makes it regenerate every time the view is changed. What you probably want here is to only make the "value" attribute depend on the view:

1
2
3
4
5
    let stringEditor (view: View<string>) (onInput: string -> unit) =
        Doc.Element "input"
            [Attr.Dynamic "value" view
             Attr.Handler "input" (fun e -> onInput (box e.CurrentTarget)?value)]
            []
By on 4/16/2015 12:51 PM ()

Makes sense. Thank you!

By on 4/17/2015 11:07 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper