@@ -28,7 +28,7 @@ export const menuProps = {
28
28
mode : MenuMode . def ( 'vertical' ) ,
29
29
selectable : PropTypes . looseBool ,
30
30
selectedKeys : PropTypes . arrayOf ( PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ) ,
31
- defaultSelectedKeys : PropTypes . array ,
31
+ defaultSelectedKeys : PropTypes . arrayOf ( PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ) ,
32
32
openKeys : PropTypes . arrayOf ( PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ) ,
33
33
defaultOpenKeys : PropTypes . arrayOf ( PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ) ,
34
34
openAnimation : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . object ] ) ,
@@ -158,14 +158,14 @@ const Menu = defineComponent({
158
158
this . restoreModeVerticalFromInline ( ) ;
159
159
this . $emit ( 'mouseenter' , e ) ;
160
160
} ,
161
- handleTransitionEnd ( e ) {
161
+ handleTransitionEnd ( e : TransitionEvent ) {
162
162
// when inlineCollapsed menu width animation finished
163
163
// https://github.com/ant-design/ant-design/issues/12864
164
164
const widthCollapsed = e . propertyName === 'width' && e . target === e . currentTarget ;
165
165
166
166
// Fix SVGElement e.target.className.indexOf is not a function
167
167
// https://github.com/ant-design/ant-design/issues/15699
168
- const { className } = e . target ;
168
+ const { className } = e . target as ( SVGAnimationElement | HTMLElement ) ;
169
169
// SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during an animation.
170
170
const classNameValue =
171
171
Object . prototype . toString . call ( className ) === '[object SVGAnimatedString]'
0 commit comments