0

I have this code:

 <lightning:input name="myFile" type="file" label="Attachment" required="true" onchange="{! c.handleFilesChange }"/>

It works fine when placed in component. But when it is placed in modal, it does not open file selector. I use this modal: https://www.lightningdesignsystem.com/components/modals/

Although drag and drop is working in both cases. Any ideas?

  • 2
    Do you use overlay library? – kurunve Aug 7 '18 at 12:03
  • @kurunve no, let me check it – vladdihoney Aug 7 '18 at 12:04
  • @kurunve yes it helped. Please do post an answer so I can accept it – vladdihoney Aug 8 '18 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.