U
U
ummahusla2020-02-19 11:28:35
React
ummahusla, 2020-02-19 11:28:35

Why does a simple button close the modal window?

There is a simple modal window from reacstrap. A table is inserted in it, everything would be fine, but only pagination, for some reason, instead of switching pages, closes the modal window. The same paginated table in another component works as it should.

I don't understand what is the trigger to close the modal window.

5e4cf089de8dd410448286.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-02-19
@Robur

Most likely, the click goes somewhere up the tree and the "close the window when the page is clicked" handler is triggered.
The same one that closes the window if you click past it into the gray area.
If so, then the event must be stopped somewhere along the way. If not, then figure it out, guessing from a screenshot has long been out of fashion.
Maybe this library is just clumsily written.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question