Skip to content

Commit df58981

Browse files
MoreButtonPlugin_iconComponent com
should receive userProxy as the instance prop
1 parent 7a3b06a commit df58981

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugins/moreButtonPlugin/button/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Button(getDeps, props) {
3131
return (
3232
<>
3333
<div {...ref.current.btnPropsGenerator(onClick, btnRef, open)}>
34-
<IconComponent instance={props.instance} />
34+
<IconComponent instance={props.instance.userProxy} />
3535
</div>
3636
{open ? <Popper {...props} TabsComponent={ref.current.TabsComponent} btnRef={btnRef} /> : null}
3737
</>

src/plugins/moreButtonPlugin/icon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
export default function MoreButtonPlugin_iconComponent(props) {
44
const style = {};
5-
if (props.instance.optionsManager.options.direction === 'rtl') {
5+
if (props.instance.getOption('direction') === 'rtl') {
66
style.transform = 'rotate(180deg)';
77
}
88
return (

0 commit comments

Comments
 (0)