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

mdTextFloat directive issue #605

Closed
vsrboth opened this issue Nov 11, 2014 · 7 comments
Closed

mdTextFloat directive issue #605

vsrboth opened this issue Nov 11, 2014 · 7 comments
Milestone

Comments

@vsrboth
Copy link

vsrboth commented Nov 11, 2014

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.

@kpgarrod
Copy link

I would like to be able to use ng-autocomplete (or material equivalent?)
with md-text-float, but also experience this error.
On 11 Nov 2014 06:38, "Sereyboth Van" notifications@github.com wrote:

experience this 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.


Reply to this email directly or view it on GitHub
#605.

@ThomasBurleson
Copy link
Contributor

@vsrboth - please provide a plunkr or codepen that demonstrates the issue.
@kpgarrod - auto-complete is planned for 0.8.0 milestone.

@ThomasBurleson ThomasBurleson self-assigned this Nov 13, 2014
@ThomasBurleson ThomasBurleson added this to the 0.6.0-rc1 milestone Nov 13, 2014
@vsrboth
Copy link
Author

vsrboth commented Nov 14, 2014

@ThomasBurleson
Thank so much for your responding, i don't think I'll be able to provide you the plunker just now as it's just a small point of my current on going project. Kindly see the following for your more info.

My own yoolk directive:

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.

@ThomasBurleson
Copy link
Contributor

@vsrboth - thanks for the additional information. Let me investigate this issue.

@ThomasBurleson
Copy link
Contributor

@vsrboth - I still am missing your question.

  • Are you saying that the input element never focuses; and only the <md-input-group> gets focus?
  • Are you saying that setFocus never gets reset to false?

@vsrboth
Copy link
Author

vsrboth commented Nov 19, 2014

@ThomasBurleson thanks for your response,
here is the answer: No and No, respectively.

The problem is that I got the following error before I can actually set focus on md-text-float.
Error: error:multidir
Multiple Directive Resource Contention

@keithballdotnet
Copy link

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?

@ThomasBurleson ThomasBurleson modified the milestones: 0.6.0, 0.7.0-rc1 Dec 2, 2014
@ajoslin ajoslin closed this as completed in 60fcd6f Jan 8, 2015
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

5 participants