File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ function handleDomVNode(vnode) {
200
200
}
201
201
202
202
if ( props . class && ! props . className ) {
203
- normalizedProps . class = normalizedProps . className = props . class ;
203
+ normalizedProps . class = props . class ;
204
204
Object . defineProperty (
205
205
normalizedProps ,
206
206
'className' ,
Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ describe('compat render', () => {
320
320
it ( 'should preserve className, add class alias' , ( ) => {
321
321
const { props } = < ul className = "from className" /> ;
322
322
expect ( props ) . to . have . property ( 'className' , 'from className' ) ;
323
+ // TODO: why would we do this, assuming that folks add className themselves
323
324
expect ( props ) . to . have . property ( 'class' , 'from className' ) ;
324
325
} ) ;
325
326
@@ -342,6 +343,7 @@ describe('compat render', () => {
342
343
const { props } = < ul className = "from className" /> ;
343
344
const spreaded = ( < li a { ...props } /> ) . props ;
344
345
expect ( spreaded ) . to . have . property ( 'className' , 'from className' ) ;
346
+ // TODO: why would we do this, assuming that folks add className themselves
345
347
expect ( spreaded ) . to . have . property ( 'class' , 'from className' ) ;
346
348
expect ( spreaded . propertyIsEnumerable ( 'class' ) ) . to . equal ( true ) ;
347
349
} ) ;
You can’t perform that action at this time.
0 commit comments