Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@github/text-expander-element

Package Overview
Dependencies
Maintainers
18
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/text-expander-element - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

8

dist/bundle.js

@@ -355,4 +355,6 @@ const ctrlBindings = !!navigator.userAgent.match(/Macintosh/);

activate(match, menu) {
if (this.input !== document.activeElement)
var _a, _b;
if (this.input !== document.activeElement && this.input !== ((_b = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement)) {
return;
}
this.deactivate();

@@ -405,3 +407,5 @@ this.menu = menu;

this.deactivate();
this.input.focus();
this.input.focus({
preventScroll: true
});
this.input.selectionStart = cursor;

@@ -408,0 +412,0 @@ this.input.selectionEnd = cursor;

@@ -185,4 +185,6 @@ import Combobox from '@github/combobox-nav';

activate(match, menu) {
if (this.input !== document.activeElement)
var _a, _b;
if (this.input !== document.activeElement && this.input !== ((_b = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement)) {
return;
}
this.deactivate();

@@ -235,3 +237,5 @@ this.menu = menu;

this.deactivate();
this.input.focus();
this.input.focus({
preventScroll: true
});
this.input.selectionStart = cursor;

@@ -238,0 +242,0 @@ this.input.selectionEnd = cursor;

@@ -38,4 +38,6 @@ import Combobox from '@github/combobox-nav';

activate(match, menu) {
if (this.input !== document.activeElement)
var _a, _b;
if (this.input !== document.activeElement && this.input !== ((_b = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement)) {
return;
}
this.deactivate();

@@ -88,3 +90,5 @@ this.menu = menu;

this.deactivate();
this.input.focus();
this.input.focus({
preventScroll: true
});
this.input.selectionStart = cursor;

@@ -91,0 +95,0 @@ this.input.selectionEnd = cursor;

{
"name": "@github/text-expander-element",
"version": "2.2.1",
"version": "2.2.2",
"description": "Activates a suggestion menu to expand text snippets as you type.",

@@ -5,0 +5,0 @@ "repository": "github/text-expander-element",

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