Home > database >  How can I dedicate space to a label inside my component?
How can I dedicate space to a label inside my component?

Time:09-20

I have a textfield component with a label for errormessages. Whenever a errormessage appears, it missplaces the field with the error.

Is there anyway to preallocate the space needed for the errormessages?

CodePudding user response:

Put your text label inside div with fixed height or width. Your space will always be there, and you show your text based on your error.

  • Related