Fix dropdown close via a portaled backdrop (#3191)
This commit is contained in:
parent
5c771050bc
commit
202adb6d7b
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import {Platform} from 'react-native'
|
||||
import {web, native} from '#/alf/util/platform'
|
||||
import * as tokens from '#/alf/tokens'
|
||||
|
||||
|
@ -6,7 +7,7 @@ export const atoms = {
|
|||
* Positioning
|
||||
*/
|
||||
fixed: {
|
||||
position: 'fixed',
|
||||
position: Platform.select({web: 'fixed', native: 'absolute'}) as 'absolute',
|
||||
},
|
||||
absolute: {
|
||||
position: 'absolute',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue