guillotinaweb / ngx-schema-form

HTML form generation based on JSON Schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VisibleIf-oneOf with 2+ conditions has same property name is not working

tqduy opened this issue · comments

commented

Hi everyone,
I'm having a problem while using the visibleIf with oneOf
Re-produce steps:

  • Click Pass : "visibleComponent" is hidden
  • Click Warn: "visibleComponent" is shown
  • Click Fail : "visibleComponent" is still shown
  • Click Warn: expect "visibleComponent" is still shown ==> actual: "visibleComponent" is hidden (wrong)
    --> Click Pass: expect "visibleComponent" is hidden
    --> Click Warn: "visibleComponent" is shown correctly
    Do you have any idea to fix this? or Am I missing something with my json

Here is the stackBliz: https://stackblitz.com/edit/schema-form-array-visibleif-binding-issue329-nqm58j?file=src/app/hello.component.ts
@daniele-pecora Sorry for bothering you but I fork the project from yours so I think you can help me with this.
Thank you!