0

I am using 1 stencil component inside other component

I want to validate input box inside my-input component on click of submit button of form which is in my-form component.

how it can be achieved ?

Rup
  • 33,765
  • 9
  • 83
  • 112
  • Is this stencil.js? You probably want to tag it that then rather than the generic 'stencils'. I'm not sure any of the tags you've used point to any specific software or language. – Rup Aug 09 '18 at 12:45
  • I'm also not completely clear what's going on. Your components are my-input and my-form, and the my-input is inside the my-form? When you submit the form you want to trigger validation on the my-input? But the problem is that you're changing some state in the my-form, not the my-input, but it's state that my-input is set up to depend on, and that should trigger a refresh of my-input but that isn't happening? – Rup Aug 09 '18 at 12:48
  • yes u are correct.refresh of my-input isn't happening – Krati Rajput Aug 10 '18 at 04:45

0 Answers0