TW-Elements icon indicating copy to clipboard operation
TW-Elements copied to clipboard

input label on non-active state

Open tesis opened this issue 7 months ago • 5 comments

Hi, on my input fields, I have an issue: after focus-out, the label is displayed over the input and I can't find solution. Can someone help me? When looses focus, looks like this (the html is from documentation): image otherwise like this: image

I'm using vueJs, and my last code looks like this:

onMounted(async () => {
    const { Input, Ripple, initTE } = await import('tw-elements')
    // other tries:

    // const importTE = async () => {
    //          await import("tw-elements");
     //       };
     //       importTE();

})

tesis avatar Dec 07 '23 18:12 tesis

Hello! Did you try initializing the component via initTE method? Try calling initTE( { Input, Ripple } ) under the async import of those elements. I suppose the border is not changing colors on focus aswell?

juujisai avatar Dec 08 '23 08:12 juujisai

Hello, juujisai I tried, is still the same. Borders are not shown at all :(

tesis avatar Dec 08 '23 08:12 tesis

If the borders do no appear at all it suggest that the Input was not initialized. To make sure, you can try checking whether element with data-te-input-notch-ref attribute was created. It looks like this: image

Did you try following our vue integration tutorial? https://tw-elements.com/docs/standard/integrations/vue-integration/

juujisai avatar Dec 11 '23 06:12 juujisai

I'm using other components and are working fine. The only issue I have are Input elements.

tesis avatar Dec 12 '23 06:12 tesis

Would you mind sharing a code snippet with us to help troubleshoot the issue? Also, have you had a chance to verify if the element with data-te-input-notch-ref is present in the input wrapper?

juujisai avatar Dec 12 '23 13:12 juujisai