Knockout-Contrib / Knockout-Contrib/Knockout-Validation

Element is not decorated on dynamic observables

Open
#564 3 comments 0 reactions 0 assignees View on GitHub
circle back
Dominant language
JavaScript
Stars
1k
Forks
366
PR merge metrics
No merged PRs in 30d

Description

Please refers to http://jsbin.com/mudeko/4/edit?html,js,output for a live demo

Steps to recreate:
- Click on Add Activity Type
- Click on Save

the form is invalid but the element is not decorated.

However, this is working on the initial binding:
- Reload the page
- Click on Save

the form is invalid and the element is decorated.

Seems that the binding is detached on the following reassignments.

Contributor guide

Open the contributing guide

Research direction

Start with the JSBin demo linked in the issue and reproduce the dynamic flow: click Add Activity Type, then Save, and compare it with the initial-binding flow after reload. Trace why validation is detached after the reassignment; done means the invalid dynamically added element is decorated as it is during initial binding.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.