x-editable popover not shown completely

后端 未结 2 1096
你的背包
你的背包 2021-02-14 01:35

I am using x-editable js. My x-editable popover is not shown completely.

\"enter

2条回答
  •  难免孤独
    2021-02-14 02:24

    I know this is somewhat of a late reply, but I was just struggling with this issue and solved it in a different way which may help other people.

    X-editable is based on Bootstrap's Popover plugin, so adding container: 'body' to your .editable() settings (or any other container that is not within your overflow:hidden element) will also fix this problem.

    This will most likely only work with the Bootstrap version of X-editable but I haven't checked that.

    Edit:

    Just add that container option..

    $('#username').editable({ container: 'body', type: 'text', pk: 1, url: '/post', title: 'Enter username' });

提交回复
热议问题