File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
js/packages/@reactpy/client/src Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -142,14 +142,6 @@ export function createAttributes(
142142 model : ReactPyVdom ,
143143 client : ReactPyClientInterface ,
144144) : { [ key : string ] : any } {
145- // Add key to attributes
146- if ( model . key ) {
147- if ( model . attributes ) {
148- model . attributes . key = model . key ;
149- } else {
150- model . attributes = { key : model . key } ;
151- }
152- }
153145 return Object . fromEntries (
154146 Object . entries ( {
155147 // Normal HTML attributes
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def __call__(
148148 ) -> VdomDict :
149149 """The entry point for the VDOM API, for example reactpy.html(<WE_ARE_HERE>)."""
150150 attributes , children = separate_attributes_and_children (attributes_and_children )
151- key = attributes .pop ("key" , None )
151+ key = attributes .get ("key" , None )
152152 attributes , event_handlers = separate_attributes_and_event_handlers (attributes )
153153 if REACTPY_CHECK_JSON_ATTRS .current :
154154 json .dumps (attributes )
You can’t perform that action at this time.
0 commit comments