Questions tagged [modal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
5answers
16k views

How to close lightning:overlayLibrary custom modal?

The documentation shows how to close an overlay immediately after showing the modal, however, this is not very useful for real-life situations. I have a component which has a lightning:...
4
votes
2answers
5k views

Issue in Lightning desing System modal component

I have developed new Modal using lightning desing system.In standard modal new button pop up appears on whole broweser lightning page. But when I desgined using SLDS it will come up but still ...
3
votes
2answers
2k views

Close Lightning Modal by clicking anywhere outside of it

Just wondering whether this is possible? i.e. once a modal is open, close it by clicking anywhere on the grey backdrop? I've tried invoking my custom close-modal function via: - Adding onclick to the ...
3
votes
2answers
12k views

How to open lightning component tab from lightning quick action instead of lightning modal?

I have build a simple lightning component something like : <aura:component implements="force:appHostable,flexipage:availableForRecordHome,force:lightningQuickAction"> Hello World </aura:...
4
votes
2answers
4k views

How to apply css to Lightning:overlayLibrary

My objective is to control the width of the modal provided by lighting:overlayLibrary component. I am trying to do it by overriding the css applied to the slds-modal__container. I was hopeful this ...
0
votes
1answer
211 views

Why cant I navigate to lightning component in communities?

Im on a lightning community, i have a lightning component and i want to open another component with this code: navigateToMyComponent : function(component, event, helper) { console.log('1'); ...
5
votes
2answers
4k views

how to access the save button in a modal when implementing the force:lightningQuickAction

I am actually creating a component that will implement the force:lightningQuickAction so that my component open in a modal window from the action button.I would like to capture the event where the ...
2
votes
1answer
6k views

Show Lightning component Modal above Salesforce Global header (Position Issue) [duplicate]

I have added lightning Modal (slds) component A in a another Lightning Component B. Lightning component B is used to create Lightning Tab. Now when I show the modal, Position of Modal component A is ...
1
vote
2answers
311 views

SLDS modals: combobox loses focus on scroll

I have a modal with a lightning-combobox in it. When the combobox is in focus, the dropdown is displayed. When the user clicks elsewhere, the dropdown is hidden. So far so good, but if the height of ...
1
vote
2answers
3k views

Opening a modal with force:recordEdit throws “Invalid Record Id or Record not accessible,” but then it works?

The issue: when opening a modal with a force:recordEdit inside of it, the modal briefly flashes "Invalid Record Id or Record not accessible." and then allows me to proceed editing the record. I think ...
1
vote
0answers
318 views

How to programmatically identify that no modal is visible on screen?

I want to identify that screen does not have any modal visible, and based on this, I want to show or hide the window's default scrollbar. To show/hide the scrollbar I got excellent solution from this ...
0
votes
1answer
597 views

Prevent LWC Modal from Closing when Clicking Anywhere Outside it

There is a stackexchange post here that is trying to make it possible for clicking outside the modal to allow the modal to close However, I am trying to do the opposite. I have a parent component that ...
0
votes
0answers
101 views

Component behaves differently in community vs internal

I have a component that displays a modal form using create component and a modal promise. In the community, it works as intended, where something occurs that fires the event that creates the ...