V-calendar: Clear date-picker styles on focus

Created on 23 Jul 2019  路  3Comments  路  Source: nathanreyes/v-calendar

I've tried to clear Tailwind styles and worked by changing the class prop, but they get reapplied on focus event. Is there any way simple to clear them? I guess I could read how to make a custom input otherwise

<v-date-picker
  v-model="dates"
  mode="range"
  :input-props="{
    class: 'input',
    placeholder: 'Select date range'
  }"
 />

Peek 23-07-2019 11-16

Most helpful comment

But this got me thinking. If we specify a class to input-props, would it be reasonable not to revert it to the original classes upon drag? @nathanreyes 馃

All 3 comments

Had the same issue. From a possible duplicate issue #451 I solved this by explicitly apply a class object to the theme prop:

<v-data-picker
  :input-props="{ class: 'input' }"
  :theme="{
    datePickerInputDrag: { light: 'input' }
  }"
/>

I'm using v-calendar@next with light theme, so only light is assigned with a new value here.
Hope it helps.

But this got me thinking. If we specify a class to input-props, would it be reasonable not to revert it to the original classes upon drag? @nathanreyes 馃

Would be great to inherit the classes on the original input.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

felixfrtz picture felixfrtz  路  3Comments

knagyorg picture knagyorg  路  4Comments

bocanhcam picture bocanhcam  路  3Comments

octaviangrozman picture octaviangrozman  路  4Comments

rcascante picture rcascante  路  3Comments