Skip to content

Commit

Permalink
chore: actionsButtonCn
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor committed Feb 16, 2024
1 parent 21df027 commit 59eae69
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const isActionGroup = <I extends TableDataItem>(

const b = block('table');
const actionsCn = b('actions');
const BUTTON_CLASS_NAME = b('actions-button');
const actionsButtonCn = b('actions-button');

const bPopup = block('table-action-popup');
const menuCn = bPopup('menu');
Expand Down Expand Up @@ -163,7 +163,7 @@ const DefaultRenderRowActions = <I extends TableDataItem>({
</Popup>
<Button
view="flat-secondary"
className={BUTTON_CLASS_NAME}
className={actionsButtonCn}
onClick={() => setOpen(!open)}
size={rowActionsSize}
ref={anchorRef}
Expand Down Expand Up @@ -259,7 +259,7 @@ export function withTableActions<I extends TableDataItem, E extends {} = {}>(
if (
// @ts-ignore
event.nativeEvent.target.matches(
`.${BUTTON_CLASS_NAME}, .${BUTTON_CLASS_NAME} *`,
`.${actionsButtonCn}, .${actionsButtonCn} *`,
)
) {
return undefined;
Expand Down

0 comments on commit 59eae69

Please sign in to comment.