Comments (4)
The code needs to have access to the wrapping component to determine if any element within it has focus. It does this to determine if focus should be removed when blocking starts.
The tag was intended to be used as you are using it, allowing for any component to be used.
The simplest solution here would be to restrict the focus management feature to when tag
is a strings... but that would suck.
from react-block-ui.
I added a helper element which I can use to dynamically get the wrapping element from to determine focus. This should resolve your issue.
from react-block-ui.
@TheSharpieOne I'm not sure if your helper resolved this issue. I created a code sandbox link as an example of this error still persisting only on the first load since the ref doesn't exist yet. After that, "during development" on react hot reloads the error doesn't re-pop up.
https://codesandbox.io/s/7jw0k58j41
from react-block-ui.
Apparently I broke this with this commit: 7ba8b8e
I added a ref
back to the wrapping component where Tag
is used :(
The container was used to determine the size of the content being blocked to keep the loading indicator centered. Could probably use the helpers to determine the top and bottom of the content area instead of the wrapping container.
from react-block-ui.
Related Issues (20)
- Cannot find module: 'react-block-ui/redux'. Make sure this package is installed. HOT 3
- Move to availity-react HOT 2
- Could not find type declaration for module react-block-ui HOT 3
- Warning: unstable_flushDiscreteUpdates HOT 25
- Typings problem with tag prop HOT 3
- React 16.9 warning - componentWillReceiveProps HOT 16
- reduxMiddleware examples/documentation wrong? HOT 1
- Doesnโt block responsive design HOT 2
- keepInView start working after scroll HOT 2
- Use Portal for span in BlockUI to prevent validateDomNesting warnings HOT 2
- Unable to improve reduxMiddleware from react-block-ui/reduxMiddleware HOT 2
- Warning | validateDOMNesting For Helper Ref HOT 1
- In combination with MUI and rematch I am getting: Module not found: Can't resolve 'react-block-ui/reduxMiddleware' in HOT 3
- React functional component : can we setState on form load as all components are disabled
- Question - Block only one child in a list HOT 4
- How to change the overlay opacity. HOT 1
- ComponentWillReceiveProps has been renamed, and is not recommended for use. HOT 3
- Cannot use react-block-ui with React 17 HOT 6
- Still able to navigate with tab between inputs and enter data
- Allow passing of aria-label for Accessibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-block-ui.