New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-focus-input

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-focus-input

Components that have focus

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-15.38%
Maintainers
2
Weekly downloads
 
Created
Source

Ember-cli-focus-input

Build Status NPM Downloads

Description

Ember-cli-focus-input is a set of ember components that provide autofocus (the first input of your form/page).

Why? There's the HTML5 input autofocus attribute!

The HTML5 input autofocus attribute does not work properly for Ember applications. It just lets you specify that a form control should have input focus when the page loads. That's why the attribute does not work properly for single page applications (SPA's).

Installation

As any other ember-cli addon, run:

$ ember install ember-cli-focus-input

Focus Input

{{focus-input value=model.field class="foo"}}

By default the input will be focused and have the content selected. If you prefer not to have the text selected/highlighted configure it like so.

{{focus-input value=model.field class="foo" select="false"}}

Focus Button

{{focus-button value=model.buttonField class="bar"}}

Running Tests

npm install (or yarn install)
ember test
ember try:each (test against multiple ember versions defined in config/ember-try.js)

License

Copyright © 2016 Brandon Williams http://williamsbdev.com

Licensed under the MIT License

Keywords

FAQs

Package last updated on 10 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc