I am using the vue-select with vee-validate within my Nuxt 3 application but the problem is that when the selected option text is too large then the <input> goes to the next line due to which the overall field height increases which I want to avoid. For the selected text if the option text is not large then everything works fine. This is happenning only for large text only.
For smaller text the field appears something like this:
For large text the field appears something like this:
As we can see the field expands when there is larger text and when I checked in inspect tab of chrome I can see that the <input> is shifting to next line due to large text which I want to avoid. I want to ensure that the field does not expand.
I am using the
vue-select
withvee-validate
within myNuxt 3
application but the problem is that when the selected option text is too large then the<input>
goes to the next line due to which the overall field height increases which I want to avoid. For the selected text if the option text is not large then everything works fine. This is happenning only for large text only.Following is the code I have:
For smaller text the field appears something like this:
For large text the field appears something like this:
As we can see the field expands when there is larger text and when I checked in inspect tab of chrome I can see that the
<input>
is shifting to next line due to large text which I want to avoid. I want to ensure that the field does not expand.I tried adding few Tailwind css styles:
This is making the icons to go beyond: