bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Modal: strange behavior

Open alexander-konovalov opened this issue 12 years ago • 2 comments

simple plunk: http://plnkr.co/edit/0yCOdDrNPq5EXLkXlq5N

Click "Open me!" Why Text1 and Text2 fields are different when I edit input textbox?

alexander-konovalov avatar Feb 19 '14 06:02 alexander-konovalov

@alexander-konovalov this is due to a transclusion scope that exists between your controller and the modal template: http://plnkr.co/edit/rAaWVJqlykXcNMZIN0nR?p=preview

pkozlowski-opensource avatar Feb 19 '14 11:02 pkozlowski-opensource

I was having the same issue. It took a while until we found the cause for this :).

Can you explain why we cannot use the controller like a common scenario?

Edit: I guess it's because we are using a modal-window directive? That's where the transclude happens?

davidcruy avatar Feb 25 '14 14:02 davidcruy