popconfirm not hide when focus out


Topic: popconfirm not hide when focus out

Miguel Angel Bañolas pro premium asked 2 weeks 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 2 weeks ago

Hi,

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

Keep coding,
Dawid


Mbanolas pro premium answered 2 weeks 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 weeks 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.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: Mac
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: Yes
Tags