apache / apache/royale-asjs

Validation doesn't work when Jewel Form is being added after state change

Open
#382 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

I have view with form when one FormItem is being included once state has changed. This FormItem contains validation which doesn't work. Attached example illustrates problem in FormView.

[JewelStatesFormsTest.zip](https://github.com/apache/royale-asjs/files/2769222/JewelStatesFormsTest.zip)

After state change label of FormItem should be different and validation should work. Currently non of that is working. When I remove includeIn="forms" - everything is ok. I hope I didn't forget about anything this time. ;)

Example has been tested with build: [1805](http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/royale-asjs/1805/)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attached JewelStatesFormsTest.zip and reproduce the issue in FormView using the includeIn="forms" state change. Compare the behavior with includeIn removed, then trace how the FormItem label and validation are handled after the state change. Done means the label changes and validation works when the form item is added after the state change.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.