Skip to content

Commit

Permalink
feat(select): add prop to turn off the movement
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch committed Jun 23, 2021
1 parent abe717d commit 7c6c495
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components-angular/src/directives/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1066,14 +1066,14 @@ export class BalRadioGroup {

export declare interface BalSelect extends Components.BalSelect {}
@ProxyCmp({
inputs: ['balTabindex', 'disabled', 'expanded', 'inverted', 'loading', 'multiple', 'name', 'noBorder', 'noDataLabel', 'placeholder', 'scrollable', 'searchInput', 'typeahead', 'value'],
inputs: ['balTabindex', 'disabled', 'expanded', 'hasMovement', 'inverted', 'loading', 'multiple', 'name', 'noBorder', 'noDataLabel', 'placeholder', 'scrollable', 'searchInput', 'typeahead', 'value'],
methods: ['setFocus', 'clear', 'open', 'close', 'cancel', 'select']
})
@Component({
selector: 'bal-select',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['balTabindex', 'disabled', 'expanded', 'inverted', 'loading', 'multiple', 'name', 'noBorder', 'noDataLabel', 'placeholder', 'scrollable', 'searchInput', 'typeahead', 'value'],
inputs: ['balTabindex', 'disabled', 'expanded', 'hasMovement', 'inverted', 'loading', 'multiple', 'name', 'noBorder', 'noDataLabel', 'placeholder', 'scrollable', 'searchInput', 'typeahead', 'value'],
outputs: ['balChange', 'balClick', 'balInput', 'balBlur', 'balFocus', 'balCancel', 'balKeyPress']
})
export class BalSelect {
Expand Down
5 changes: 5 additions & 0 deletions packages/components-vue/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1535,6 +1535,11 @@ export const BalSelect = /*@__PURE__*/ defineComponent({
default: false,
required: false,
},
hasMovement: {
type: Boolean,
default: false,
required: false,
},
typeahead: {
type: Boolean,
default: false,
Expand Down

0 comments on commit 7c6c495

Please sign in to comment.