You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: input floating label is always floating when using start/end slots #28665
Utility:
cordova-res : not installed globally
native-run : 1.7.4
System:
NodeJS : v20.10.0
npm : 10.2.3
OS : Windows 10
Additional Information
No response
Reacted by Hans, OWEN KELVIN OTIENO, Bertrand Ravier, Wolf Walter, Hrafnkell Baldursson, Johannes Schill, Simon, trydofor, Lucas Mateus, Jimmy Verburgt and 14 more
changed the title [-]bug: ion-input with labelPlacement floating not working with slots[/-][+]bug: input floating label is always floating when using start/end slots[/+]on Dec 7, 2023
If you really need this feature, you can use "patch-package" library (or, if you are using pnpm, pnpm patch functionality) and the answer from @VerburgtJimmy.
The local patch will be stored in your repo, which you will be able to simply remove if ionic will handle this by itself.
Keep in mind that with this fix you need to manually handle label position if "start" slot is presented, because they start overlapping (you can make a patch that removes only "end" slot check e.g.)
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
[-]bug: ion-input with labelPlacement floating not working with slots[/-][+]bug: input floating label is always floating when using start/end slots[/+]richardliebmann commentedon Apr 19, 2024
+1
5uper commentedon Apr 26, 2024
+1
Fearcoder commentedon May 12, 2024
+1
hienpvptit commentedon May 18, 2024
+1
VerburgtJimmy commentedon May 21, 2024
Is there someone from the team who is able to look at this issue? The issue persists in ionic 8 when i have my code like this:
Just looked into the code and it seems there is already a TODO for this issue. So it is just a question of when it is done:
ionic-framework/core/src/components/input/input.tsx
Lines 718 to 721 in 05f857a
VerburgtJimmy commentedon May 29, 2024
+1
YounesAmalouSSCA commentedon Jul 23, 2024
+1
beliven-davide-lorigliola commentedon Aug 7, 2024
+1
Fix ionic-team#28665: do not float label because of slotted items
gerichyura commentedon Dec 12, 2024
+1
14 remaining items
RicardoJCh commentedon Jul 9, 2025
+1
simb commentedon Aug 29, 2025
+1
temelkovgjoko commentedon Sep 2, 2025
+1
kyawswarthwin commentedon Sep 14, 2025
The bug still hasn’t been fixed up to September 14, 2025.
soloVlad commentedon Oct 21, 2025
+1
soloVlad commentedon Oct 21, 2025
If you really need this feature, you can use "patch-package" library (or, if you are using pnpm, pnpm patch functionality) and the answer from @VerburgtJimmy.
The local patch will be stored in your repo, which you will be able to simply remove if ionic will handle this by itself.
Keep in mind that with this fix you need to manually handle label position if "start" slot is presented, because they start overlapping (you can make a patch that removes only "end" slot check e.g.)
dennido commentedon Dec 8, 2025
+1
kucki10 commentedon Jan 26, 2026
+1 (ionic v8)
ADM-Dev-mx commentedon Jun 15, 2026
+1, This is still happening.
The TODO is still in the code. Are you working on this right now? If not, I would like to work on a PR to fix it :).
Rattone commentedon Jun 29, 2026
I think there is not much interest in solving this trivial problem, at least that's how it seems
fix(input): support floating labels with slotted content (#31309)
ionitron-bot commentedon Sep 18, 2026
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.