Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Allow focus to component #744

Closed
pjlasl opened this issue Oct 20, 2016 · 3 comments
Closed

Allow focus to component #744

pjlasl opened this issue Oct 20, 2016 · 3 comments

Comments

@pjlasl
Copy link

pjlasl commented Oct 20, 2016

This is more of a request than an issue.

I am using your component on a modal and I would like for the component to have focus (meaning the user does not need to click inside to begin typing) when the modal is open.

I tried to use the angular ngFocus but was unable to get it to work.

Thanks!

@ahmedBassell
Copy link

+1

@ahmedBassell
Copy link

@pjlasl ngFocus isn't supposed to help, check this http://stackoverflow.com/a/34924347
but i actually tried to add a custom directive for it but i get an error of multiple directives cause i want to make isolate scope to watch some variable to trigger the focus action

Error: [$compile:multidir] Multiple directives

alivraghi pushed a commit to alivraghi/ngTagsInput that referenced this issue Mar 23, 2017
Add attributes for the user to set custom id and tabindex on the input
field:
- input-field-id enable the use of getElementById().
- input-field-tabindex overwrite the old tabindex attribute to eliminate
the need of double tab

Closes mbenford#744.
alivraghi pushed a commit to alivraghi/ngTagsInput that referenced this issue Apr 12, 2017
Add attributes for the user to set custom id and tabindex on the input
field:
- input-field-id enable the use of getElementById().
- input-field-tabindex overwrite the old tabindex attribute to eliminate
the need of double tab

Closes mbenford#744.
alivraghi pushed a commit to alivraghi/ngTagsInput that referenced this issue Apr 12, 2017
Add attributes for the user to set custom id and tabindex on the input
field:
- input-field-id enable the use of getElementById().
- input-field-tabindex overwrite the old tabindex attribute to eliminate
the need of double tab

Closes mbenford#744.
@mbenford
Copy link
Owner

This issue was selected to be spring-cleaned by a script. More information can be found here.

If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file.

alivraghi pushed a commit to alivraghi/ngTagsInput that referenced this issue Apr 19, 2017
Add attributes for the user to set custom id and tabindex on the input
field:
- input-field-id enable the use of getElementById().
- input-field-tabindex overwrite the old tabindex attribute to eliminate
the need of double tab

Closes mbenford#744.
alivraghi pushed a commit to alivraghi/ngTagsInput that referenced this issue Apr 19, 2017
Add attributes for the user to set custom id and tabindex on the input
field:
- input-field-id enable the use of getElementById().
- input-field-tabindex overwrite the old tabindex attribute to eliminate
the need of double tab

Closes mbenford#744.
alivraghi pushed a commit to alivraghi/ngTagsInput that referenced this issue Apr 19, 2017
Add attributes for the user to set custom id and tabindex on the input
field:
- input-field-id enable the use of getElementById().
- input-field-tabindex overwrite the old tabindex attribute to eliminate
the need of double tab

Closes mbenford#744.
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