• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geosolutions-it / MapStore2 / 19710972030

26 Nov 2025 03:38PM UTC coverage: 76.665% (-0.3%) from 76.929%
19710972030

Pull #11119

github

web-flow
Fix maven publish (#11739)
Pull Request #11119: Layer Selection Plugin on ArcGIS, WFS & WMS layers

32272 of 50209 branches covered (64.28%)

3 of 3 new or added lines in 2 files covered. (100.0%)

3018 existing lines in 249 files now uncovered.

40157 of 52380 relevant lines covered (76.66%)

37.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/web/client/components/misc/Modal.jsx
1
/**
2
 * Copyright 2017, GeoSolutions Sas.
3
 * All rights reserved.
4
 *
5
 * This source code is licensed under the BSD-style license found in the
6
 * LICENSE file in the root directory of this source tree.
7
 */
8

9
import { Modal } from 'react-bootstrap';
10

11
import withContainer from './WithContainer';
12

13
/**
14
  * This allow do disable event propagation if used
15
  * in Portal inside a component with a `onClick` method (e.g. a button)
16
  * but you don't want events to be propagated to the container.
17
  * adding the event to `onHide` method, you can customize the handler
18
  * stopping event propagation manually.
19
  *
20
  * See [this](https://github.com/facebook/react/issues/11387) and [this](https://reactjs.org/docs/portals.html#event-bubbling-through-portals)
21
  */
22
class FixedModal extends Modal {
23
    handleDialogClick(e) {
24
        if (e.target !== e.currentTarget) {
34!
25
            return;
34✔
26
        }
UNCOV
27
        this.props.onHide(e);
×
28
    }
29
}
30

31

32
export default Object.assign(withContainer(FixedModal), {
33
    Body: Modal.Body,
34
    Dialog: Modal.Dialog,
35
    Footer: Modal.Footer,
36
    Header: Modal.Header,
37
    Title: Modal.Title
38
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc