@1024pix/pix-ui 41.0.2 → 41.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,7 @@
18
18
  {{on "keyup" (fn this.handleKeyUp i)}}
19
19
  {{on "input" (fn this.handleCodeInput i)}}
20
20
  {{on "paste" (fn this.handlePaste i)}}
21
+ {{on "focus" (fn this.handleFocus i)}}
21
22
  />
22
23
  {{/each}}
23
24
  </fieldset>
@@ -125,6 +125,12 @@ export default class PixInputCode extends Component {
125
125
  this.focusElement(index);
126
126
  this.triggerAction();
127
127
  }
128
+
129
+ @action
130
+ handleFocus(index) {
131
+ const element = document.getElementById(`code-input-${index}`);
132
+ element && element.select();
133
+ }
128
134
  }
129
135
 
130
136
  function _extractValidCharacters(pastedText) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "41.0.2",
3
+ "version": "41.0.3",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"