Skip to content

Commit

Permalink
feat: expose setFixedPosition on select that proxies
Browse files Browse the repository at this point in the history
 to menu
  • Loading branch information
pgbross committed Jul 14, 2020
1 parent 7d3171d commit e87390c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/select/select.js
Expand Up @@ -217,6 +217,8 @@ export default {
setLabelRequired: isRequired => uiState.labelEl?.setRequired(isRequired),
};

const setFixedPosition = isFixed => uiState.menu.setFixedPosition(isFixed);

const refreshIndex = () => {
const items = menuItems.value.map(
el => el.getAttribute(strings.VALUE_ATTR) || '',
Expand Down Expand Up @@ -280,6 +282,7 @@ export default {
selectedTextAttrs,
handleMenuItemAction,
refreshIndex,
setFixedPosition,
};
},

Expand Down

0 comments on commit e87390c

Please sign in to comment.