diff --git a/presets/aura/inputtext/index.js b/presets/aura/inputtext/index.js index 1069a15e..27b18317 100644 --- a/presets/aura/inputtext/index.js +++ b/presets/aura/inputtext/index.js @@ -44,7 +44,7 @@ export default { }, // Filled State *for FloatLabel - { filled: parent.instance?.$name == 'FloatLabel' && context.filled }, + { filled: (parent.instance?.$name == 'FloatLabel' && context.filled) || (parent.instance?.$parentInstance?.$name == 'FloatLabel' && parent.props.modelValue !== null && parent.props.modelValue?.length !== 0) }, // Misc 'appearance-none', diff --git a/presets/lara/inputtext/index.js b/presets/lara/inputtext/index.js index 119a6242..88f32bb7 100644 --- a/presets/lara/inputtext/index.js +++ b/presets/lara/inputtext/index.js @@ -44,7 +44,7 @@ export default { }, // Filled State *for FloatLabel - { filled: parent.instance?.$name == 'FloatLabel' && context.filled }, + { filled: (parent.instance?.$name == 'FloatLabel' && context.filled) || (parent.instance?.$parentInstance?.$name == 'FloatLabel' && parent.props.modelValue !== null && parent.props.modelValue?.length !== 0) }, // Misc 'appearance-none',