Topic: The search input of a select module cannot be focused when this select exists in a modal

用户9506 priority asked 3 months ago


as title said, when I use a modal, and put a filtered select with a search input , the search input can not be focused any more, this situation only happend when this select existed in a modal, how can I resolve this issue ? thanks.


用户9506 priority answered 3 months ago


I find the reason at last, you have to initial your modal with focus property as false, such as

const modal_detail = new mdb.Modal(dom\_modal, { backdrop: true, keyboard: true, focus: false }); or via data attributes data-mdb-focus="false".


用户9506 priority commented 3 months ago

focus="true" makes this issue.


mlazaru staff answered 3 months ago


Hi,

I've tried to recreate this problem but for some reason i couldn't

I created modal with data-mdb-focus='true', input with filter and it does work normally. Are you able to recreate the problem in snippet? https://mdbootstrap.com/snippets/standard/mlazaru/4343563


用户9506 priority answered 3 months ago


and I cannot type into any characters to the search input.



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

  • User: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.1.0
  • Device: PC
  • Browser: Chrome
  • OS: WINDOWS11
  • Provided sample code: No
  • Provided link: No