disable/enable modalsubmitaction

How do we disable or enable the modalsubmitaction based on the form value. I have an afterstateupdated method which fetches data from an external API. I would like to disable the submit action by default till the api fetches the data and store it in a hidden field. I tried Get method but throws an error $container must not be accessed before intilization.
0 Replies
No replies yetBe the first to reply to this messageJoin