address comments
This commit is contained in:
parent
9715f4ed59
commit
ee7931f41f
@ -3,7 +3,7 @@
|
||||
from typing import Any, Literal, Optional, Union
|
||||
|
||||
from reflex.event import EventHandler, no_args_event_spec
|
||||
from reflex.utils import types
|
||||
from reflex.utils import console, types
|
||||
from reflex.vars.base import Var
|
||||
|
||||
from .base import NextComponent
|
||||
@ -82,6 +82,15 @@ class Image(NextComponent):
|
||||
Returns:
|
||||
_type_: _description_
|
||||
"""
|
||||
if "blurDataURL" in props:
|
||||
console.deprecate(
|
||||
feature_name="blurDataURL",
|
||||
reason="Use blur_data_url instead",
|
||||
deprecation_version="0.7.0",
|
||||
removal_version="0.8.0",
|
||||
)
|
||||
props["blur_data_url"] = props.pop("blurDataURL")
|
||||
|
||||
style = props.get("style", {})
|
||||
|
||||
def check_prop_type(prop_name, prop_value):
|
||||
|
@ -560,10 +560,10 @@ class JavasciptKeyboardEvent:
|
||||
"""Interface for a Javascript KeyboardEvent https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent."""
|
||||
|
||||
key: str = ""
|
||||
alt_key: bool = False
|
||||
ctrl_key: bool = False
|
||||
meta_key: bool = False
|
||||
shift_key: bool = False
|
||||
altKey: bool = False # noqa: N815
|
||||
ctrlKey: bool = False # noqa: N815
|
||||
metaKey: bool = False # noqa: N815
|
||||
shiftKey: bool = False # noqa: N815
|
||||
|
||||
|
||||
def input_event(e: Var[JavascriptInputEvent]) -> Tuple[Var[str]]:
|
||||
|
Loading…
Reference in New Issue
Block a user