S
Solara6mo ago
Harry

InputDate not working

I am trying to run this simple page:
import solara
import solara.lab
import datetime as dt


@solara.component
def Page():
date = solara.use_reactive(dt.date.today())

solara.lab.InputDate(date)
import solara
import solara.lab
import datetime as dt


@solara.component
def Page():
date = solara.use_reactive(dt.date.today())

solara.lab.InputDate(date)
when I do I get this error:
aise KeyError(f"Element {el} was found to be in a previous render, you may have used a stale element")
KeyError: "Element ipyvuetify.TextField(label = 'Pick a date', v_model = '2023/12/18', on_v_model = <function ...127135cf0>, append_icon = 'mdi-calendar', error = False, style_ = 'min-width: 290px;', class_ = '') was found to be in a previous render, you may have used a stale element"
aise KeyError(f"Element {el} was found to be in a previous render, you may have used a stale element")
KeyError: "Element ipyvuetify.TextField(label = 'Pick a date', v_model = '2023/12/18', on_v_model = <function ...127135cf0>, append_icon = 'mdi-calendar', error = False, style_ = 'min-width: 290px;', class_ = '') was found to be in a previous render, you may have used a stale element"
I have tried clearing my browser but nothing I do fixes the issue
2 Replies
MaartenBreddels
MaartenBreddels6mo ago
which version of solara, ipyvue and ipyvuetify do you have
Harry
Harry6mo ago
solara: 1.25.0 ipyvue: 1.10.1 ipyvuetify: 1.8.10