Skip to content

Commit

Permalink
* picker: set relativeTarget to footer toolbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Aug 23, 2024
1 parent c5393f7 commit 195685e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/picker/src/component/picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export class Picker<S extends PickerState = PickerState, O extends PickerOptions
text: i18n.getLang('cancelSelect'),
}];
}
return Toolbar.render(toolbar, [], {size: 'sm', getItem: (item) => {
return Toolbar.render(toolbar, [], {size: 'sm', relativeTarget: this, getItem: (item) => {
if (!item.onClick) {
if (item.key === 'selectAll') {
item.onClick = this.selectAll.bind(this);
Expand Down

0 comments on commit 195685e

Please sign in to comment.