Ends in:
7 DAYS
18 HRS
58 MIN
26 SEC
Ends in:
7 D
18 H
58 M
26 S
Open Closed

DatePicker auto focus #7404


User avatar
0
nabass created

hi sir i have a problem with date-picker when i open EditModel it automatically focus on date i removed auto update and put focus attr = false and used javascript but still same problem i want when open the model no focus happen to prevent open date and make user feel free

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System:SQL Server

9 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    we fixed the problem

    https://support.abp.io/QA/Questions/6980/How-to-avoid-datetimepicker-to-be-open-everytime-a-modal-is-opened-up

    https://github.com/abpframework/abp/issues/19493

  • User Avatar
    0
    nabass created

    Hi liangshiwei i searched for modal-manager.js file is locked so i can't change the code you put

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can upgrade your project version to 8.1.4

  • User Avatar
    0
    nabass created

    ooooh it's so hard to upgrade i'm afraid from confliction to happen it is a company ERP System if i do anything wrong it my damage all source code is there any thing else please try to solve this bug by adding attr to <abp-date-picker> tag it's not logic to avoid focus from js file to allow it in all date picker what if i want to avoid auto focus from specific input not all inputs so please try to fix this thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Okay, if you don't want to upgrade your project you can try this:

    https://support.abp.io/QA/Questions/6980/How-to-avoid-datetimepicker-to-be-open-everytime-a-modal-is-opened-up#answer-3a11b93b-8851-ca9f-2d45-20564a54d7af

  • User Avatar
    0
    nabass created

    yes that's exactly what i tried to do but file is locked as i mentioned

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I don't mean for you to modify the original file, but to overwrite it in your project

    You can read the document to know how it works: https://docs.abp.io/en/abp/latest/Virtual-File-System#replacing-overriding-virtual-files

  • User Avatar
    0
    nabass created

    yes you mean that to create new file with same name (modal-manager.js) and put it into same path then accept replace so the Q is where is the path should i found this file i found this docs and made the steps https://abp.io/package-detail/@abp_aspnetcore.mvc.ui.theme.shared but i still can't find the file to override it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    The path is wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06