Open Meknassih opened 2 years ago
Ah thanks @Meknassih - hmm that's a tough one to fix since the feedback would be rendered by the Input, and can't split the elements like that. Am assuming this is the best workaround for now:
<InputGroup>
<Input id="totalWeight" invalid placeholder="100" />
<InputGroupText>kg</InputGroupText >
<FormFeedback>Ce champ est obligatoire</FormFeedback>
</InputGroup >
I'll look and see if some better option, thanks for the heads up.
Hi, I just noticed that adding a
feedback
attribute for validation purposes to anInput
breaks it from its suffix element in anInputGroup
.I have noticed that changing the order of the elements fixes the issue.
Generated HTML (broken) :
Working HTML (fixed by swapping
div.invalid-feedback
andspan.input-group-text
) :