question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Popover element doesnt allow backdropStyle property

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior:

According to the docs, Popover component contains all props of the Modal component. But the backdropStyle property does not have any effect (and typechecking of typescript also fails).

Expected behavior:

backdropStyle property should work on popover component

Steps to reproduce:

Try to apply backdropStyle property on Popover

Related code:

    <Popover
      visible={true} 
      content={HintPopover()}
      onBackdropPress={() => alert('hello'))}
      backdropStyle={{backgroundColor: '#f8f8f8'}}
    >

Other information:

OS, device, package version

Android 10.0, Pixel 2 emulator, ui-kitten 4.3.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
artyorshcommented, Dec 13, 2019

You made my Autocomplete work

1reaction
xydiancommented, Dec 13, 2019

Okay i know what was causing it, my child element was an input. It is not working if the child element is an input.

    <Popover
      visible={props.visible}
      content={PopoverContent()}
      onBackdropPress={props.togglePopover}
    >
      <Input 
        value={'test'}
      />
    </Popover>

But if i wrap the input inside a View element like this, everything is working fine.

    <Popover
      visible={props.visible}
      content={PopoverContent()}
      onBackdropPress={props.togglePopover}
    >
      <View>
        <Input 
          value='test'
        />
      </View>
    </Popover>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't click elements under Material-UI Popover's backdrop ...
I'm using Material UI 4.11 and React 16.13. You can set disableEnforceFocus to true (prevent the clicks from being blocked) and disable ...
Read more >
Ability to style popovers · Issue #2075 · bootstrap-vue ... - GitHub
I'd like to be able to apply a class to a popover element so that I can style a single popover. Maybe through...
Read more >
Popovers · Bootstrap v5.0
When you have some styles on a parent element that interfere with a popover, you'll want to specify a custom container so that...
Read more >
The Popover API - Chrome Developers
The Popover API also comes with a couple of handy CSS features, a ::backdrop pseudo-element to style the document behind the popover when...
Read more >
ion-popover - Ionic Framework
If true , a backdrop will be displayed behind the popover. This property controls whether or not the backdrop darkens the screen when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found