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.

Loader is not visible in a Modal

See original GitHub issue

Bug Report

Steps

Place a Loader component in a Modal Content component

Expected Result

Spinning Loading Icon.

Actual Result

Icon not visible

Version

0.82.2

Testcase

Taken from the Modal Example:

import React from 'react'
import { Button, Header, Image, Loader, Modal } from 'semantic-ui-react'

const ModalModalExample = () => (
  <Modal trigger={<Button>Show Modal</Button>}>
    <Modal.Header>Select a Photo</Modal.Header>
    <Modal.Content image>
      <Image wrapped size='medium' src='https://react.semantic-ui.com/images/avatar/large/rachel.png' />
      <Modal.Description>
        <Header>Default Profile Image</Header>
        <p>We've found the following gravatar image associated with your e-mail address.</p>
        <p>Is it okay to use this photo?</p>
        <Loader active inline='centered' />
      </Modal.Description>
    </Modal.Content>
  </Modal>
)

export default ModalModalExample

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
layershiftercommented, Sep 5, 2018

It’s a known CSS issue: https://github.com/Semantic-Org/Semantic-UI/issues/4014

There is also a workaround:

.ui.dimmer .ui.workaround.loader:before {
  border-color: rgba(0,0,0,.1);
}
          
.ui.dimmer .ui.workaround.loader:after {
  border-color: #767676 transparent transparent;
}
<Loader active className='workaround' size='large' inline='centered' />
0reactions
samuel-knutsoncommented, Nov 24, 2020

If you want to apply @layershifter’s workaround to all modals without the extra css class:

.ui.dimmer .ui.modal .ui.loader:before {
  border-color: rgba(0,0,0,.1);
}
          
.ui.dimmer .ui.modal .ui.loader:after {
  border-color: #767676 transparent transparent;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

loader in bootstrap modal not displayed when uploading file ...
When the code is executed, the selected file is being uploaded but the loader_1.gif is not displayed. Also the button is not released...
Read more >
Show loading indicator on top of modal - MDBootstrap
This is caused by this, that the modal has higher z-index than your indicator. Please put your loading indicator within the div with...
Read more >
Loading / Preparing jQuery in a modal that is not shown
Loading / Preparing jQuery in a modal that is not shown. I'm using the Bootstrap DateTimePicker in a project with Vue.JS. This has...
Read more >
JavaScript - Bootstrap
Multiple open modals not supported. Be sure not to open a modal while another is still visible. Showing more than one modal at...
Read more >
Modal - Ant Design
Modal dialogs. ... Use confirm() to show a confirmation modal dialog. ... confirmLoading, Whether to apply loading visual effect for OK button or...
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