'How to validate the whitespace inputs and textarea in angular formly?

Inputs & Textarea fields considering whitespace as a valid value (Disabled save button in a form not working). Is there any option is available in formly to handle such scenarios?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source