Topic: popconfirm not hide when focus out

Mbanolas free asked 2 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.)

Dawid Wajszczuk staff answered 2 years ago


There is no such option in popconfirm. However, it is possible in modal or toast.

Keep coding,

Mbanolas free answered 2 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 2 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

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: 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