fix floating check with label for firefox
Merge pull request #2556 from juherpin/fix-floating-label

Fix floating check with label for firefox