Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: popconfirm not hide when focus out

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



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

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