Skip to content

Commit

Permalink
fix(NativeSelect): apply selectType to FormField
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackySoul committed Jul 28, 2023
1 parent 1091c34 commit 310b94f
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export const NativeSelectPlayground = (props: ComponentPlaygroundProps) => {
{
status: ['error', 'valid'],
},
{
selectType: ['plain', 'accent'],
},
]}
>
{(props: NativeSelectProps) => (
Expand Down
2 changes: 2 additions & 0 deletions packages/vkui/src/components/NativeSelect/NativeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useAdaptivity } from '../../hooks/useAdaptivity';
import { useEnsuredControl } from '../../hooks/useEnsuredControl';
import { useExternRef } from '../../hooks/useExternRef';
import { SizeType } from '../../lib/adaptivity';
import { getFormFieldModeFromSelectType } from '../../lib/select';
import { useIsomorphicLayoutEffect } from '../../lib/useIsomorphicLayoutEffect';
import { HasAlign, HasRef, HasRootRef } from '../../types';
import { DropdownIcon } from '../DropdownIcon/DropdownIcon';
Expand Down Expand Up @@ -99,6 +100,7 @@ const NativeSelect = ({
before={before}
after={icon}
status={status}
mode={getFormFieldModeFromSelectType(selectType)}
>
<select
{...restProps}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 310b94f

Please sign in to comment.