iOS 11 Safari bootstrap modal text area outside of cursor

前端 未结 14 904
暖寄归人
暖寄归人 2020-11-27 11:22

With iOS 11 safari, input textbox cursor are outside of input textbox. We did not get why it is having this problem. As you can see my focused text box is email text input b

14条回答
  •  死守一世寂寞
    2020-11-27 11:36

    Frustrating bug, thanks for identifying it. Otherwise, I would be banging my iphone or my head against the wall.

    The simplest fix is (1 line of code change):

    Just add the following CSS to the html or to an external css file.

    
    

    Here is a full working example:

    .modal-open { position: fixed; }
    
    
    
    
    
    ...more buttons...
    
    
    
        
        

    I submitted an issue here: https://github.com/twbs/bootstrap/issues/24059

提交回复
热议问题