Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Modal does not hold focus on a textarea element #6381

Closed
golkir opened this issue Dec 21, 2016 · 5 comments
Closed

Modal does not hold focus on a textarea element #6381

golkir opened this issue Dec 21, 2016 · 5 comments

Comments

@golkir
Copy link

golkir commented Dec 21, 2016

When I click on textarea inside the modal, the focus is lost immediately. As a result, I cannot focus on textarea at all. I do not set or unset focus attribute in my code, so it is strange.

I use Angular 1.6.0, Angular UI Boostrap 2.3.1, and Bootstrap CSS 3.3.6 and Jquery 2.2.4. Together with this I have possibly unhandled rejection error from JQuery when cancel the modal.

@sandcastle
Copy link

See #6364

@golkir
Copy link
Author

golkir commented Dec 21, 2016

Thanks, but i don't use uib-dropdown in the modal window. I only use it when opening modal like this:

<div ng-if="is('client') || is('admin')" class="btn-group pull-right v-top" uib-dropdown is-open="status.isopen"
         ng-controller="ActionsCtrl">
        <button type="button" class="btn btn-primary btn-lg" uib-dropdown-toggle ng-disabled="disabled">
            Order Actions <span class="caret"></span>
        </button>
        <ul class="dropdown-menu" role="menu">
            <li ng-if="ifCanPutOnRevision()"> <a 
            ng-click="openRevisionModal('md')">Put on revision</a></li>
            <li><a href="#deadline">Extend Deadline</a></li>
            <li> <a ng-show="order.status.completed" ng-click="leaveFeedbackModal('md')">
            Leave Feedback
            </a></li>
            <li> <a ng-click="openRefundModal('md')">
            Request Refund 
            </a></li>
            <li> <a ng-click="openCancelModal('md')">
            Cancel Order 
            </a></li>
        </ul>
    </div>

And there was no such problem until, recently. Possibly, due to update of Angular Bootstrap.Yes, it works in Angular Bootstrap 2.3.0 and not in 2.3.1

@wesleycho
Copy link
Contributor

The only modal commit in that time frame is 8a4f625, which shouldn't affect this.

If you are using a dropdown to open the modal, this is likely the regression described in #6364, which should be fixed in the freshly released 2.3.2 - let me know if this fixes the issue so we can close this out.

@ghost
Copy link

ghost commented Dec 27, 2016

2.3.2 fixed same issue for me

@wesleycho
Copy link
Contributor

Closing this out as per comments/analysis - feel free to open a new issue if this isn't fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants