-
Notifications
You must be signed in to change notification settings - Fork 3.4k
mdTextFloat directive issue #605
Comments
I would like to be able to use ng-autocomplete (or material equivalent?)
|
@ThomasBurleson My own angular.module('yoolk.directives')
.directive "setFocus", [ '$timeout', ($timeout) ->
scope:
trigger: "=setFocus"
link: (scope, element, attributes) ->
scope.$watch "trigger", (value) ->
if value
$timeout ->
element[0].focus()
scope.trigger = false
return
] How I apply with mdTextFloat? <md-text-float type="text"
ng_model='keyword'
ng_focus="focus=true"
set_focus="focusInput"
id= 'keyword" />
The error point is the set_focus attribute which is set with md-text-float directive If you still need the plunker, I'll drop by later. Appreciate your kind assistance. |
@vsrboth - thanks for the additional information. Let me investigate this issue. |
@vsrboth - I still am missing your question.
|
@ThomasBurleson thanks for your response, The problem is that I got the following error before I can actually set focus on md-text-float. |
I am also trying to set focus on a md-text-float when a controller loads. I am using this method ( http://stackoverflow.com/questions/14833326/how-to-set-focus-on-input-field ) on regular inputs but it fails on md-text-floats. Any tips on this? |
experiencing the following error with mdTextFloat directive while applying my own directive to the mdTextFloat
Error: error:multidir
Multiple Directive Resource Contention
Appreciate your kind assistant on this matter.
The text was updated successfully, but these errors were encountered: