When no results is found, containerHeight has value 6 and noMatchFoundHeight is never setting.
I think if you are adding the value 6 on each case (when elementHeight is an array or not), it could be added in popoverHeight's calculation. Then the code would look like this and the problem would be solved:
Hi, "No match found" placeholder is hidden. See below:
Then placeholder appear when I scroll into the popover:
That's because
popoverHeight
it's calculating incorrectly:When no results is found,
containerHeight
has value 6 andnoMatchFoundHeight
is never setting. I think if you are adding the value 6 on each case (whenelementHeight
is an array or not), it could be added inpopoverHeight
's calculation. Then the code would look like this and the problem would be solved:Could you consider this solution please? Thank you!!