Topic: popconfirm not hide when focus out
Miguel Angel Bañolas asked 3 years ago
*_Expected behavior_*How to avoid hidden popconfirm when click outsideHide clicking just when click buttons Yes or Cancel*_Actual behavior_*Hide when focusout**Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/miguel_angel_banolas/3596859
Dawid Wajszczuk staff answered 3 years ago
Hi,
There is no such option in popconfirm. However, it is possible in modal or toast.
Keep coding,
Dawid
Mbanolas answered 3 years ago
Thanks. Toast is a good option for my objective.
Regarding popconfirm, I don't understand under what circumstances it can be used.If a confirmation is requested by pressing two alternatives (normally accept or cancel), it does not make sense that it can be hidden by pressing outside of the popconfirm. It should have a behavior similar to the object confirm ().
Regards, Miguel
Dawid Wajszczuk staff commented 3 years ago
Thanks for your feedback. For example it can be used to display additional information and end with question if user understands it now. Then if the response is yes
just close the popconfirm and if no
redirect to the page with more in-depth explanation. It's up to you ;) Keep coding, Dawid
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.10.1
- Device: Mac
- Browser: Chrome
- OS: MacOS
- Provided sample code: No
- Provided link: Yes