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: ion-input-password-toggle causes label to float even when input is empty #29449
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
When an <ion-input type="password" label-placement="floating"> is empty but has a ion-input-password-toggle the label is floating, something which normally only happens when the input has a value.
Expected Behavior
I expect the label to be placed the same as if the ion-input-password-toggle wasn't used so that all empty inputs looks the same.
Steps to Reproduce
The problem is immediately visible in the 3rd input in the stackblitz reproduction.
Reacted by Ajit Panigrahi, Ken Sodemann, Yannis van Laerhoven, Gerardo Emmanuel Tovar Barragan, Wolf Walter, Сергей Филимонов, Göktuğ Aşcı, Jonathan Christian, ploger-nvms, Lars Nippert and 4 more
I was able to confirm that this is an issue. We plan on allowing labels to float when slots are present. We'll update this when there's more information.
Reacted by Matthias Rütten, Wolf Walter, David Nicolás Gerasimchuk and eznagovan-xmtrading
Reacted by ploger-nvms, Robert Rhoades, Ben, Nikola Milovanovic, Matthias Rütten, Stephan Köninger, Wolf Walter, David Nicolás Gerasimchuk and eznagovan-xmtrading
The issue is still open. Do you already have a plan when it will be fixed?
Reacted by Jonathan Christian, Alexander, Gleb Serov, Wolf Walter, David Nicolás Gerasimchuk, eznagovan-xmtrading, Ailín Díaz Insua, ctaepper and ErikOnBike
This seems to be the same issue as described in #28665 (except this one is more specific). I added a PR for the other issue. Hope it gets picked up (soonish).
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
thetaPC commentedon May 3, 2024
Thank you for submitting the issue!
I was able to confirm that this is an issue. We plan on allowing labels to float when slots are present. We'll update this when there's more information.
yannisvanlaerhoven3 commentedon May 29, 2024
Would love a fix 🙏
ruettenm commentedon Aug 19, 2024
The issue is still open. Do you already have a plan when it will be fixed?
ErikOnBike commentedon Oct 18, 2024
This seems to be the same issue as described in #28665 (except this one is more specific). I added a PR for the other issue. Hope it gets picked up (soonish).
tanner-reits commentedon Nov 5, 2024
Closing as duplicate of #28665
ionitron-bot commentedon Dec 5, 2024
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.
fix(input): support floating labels with slotted content (#31309)