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

@lion/button

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/button - npm Package Compare versions

Comparing version 0.8.10 to 0.8.11

6

CHANGELOG.md
# Change Log
## 0.8.11
### Patch Changes
- 33f639e8: Delay adding prevent event leakage handler by one frame. This is because it takes 1 frame longer for older browsers such as Firefox ESR 60, IE11 and old Edge to have the native form available as a property on the native button.
## 0.8.10

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@lion/button",
"version": "0.8.10",
"version": "0.8.11",
"description": "A button that is easily styleable and accessible in all contexts",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -39,3 +39,3 @@ declare const LionButton_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/SlotMixinTypes").SlotHost> & typeof import("@lion/core/types/SlotMixinTypes").SlotHost & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/DisabledWithTabIndexMixinTypes").DisabledWithTabIndexHost> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/DisabledMixinTypes").DisabledHost>;

*/
__clickDelegationHandler(ev: Event): void;
__clickDelegationHandler(ev: Event): Promise<void>;
__setupDelegationInConstructor(): void;

@@ -42,0 +42,0 @@ __setupEvents(): void;

@@ -193,3 +193,7 @@ import {

this.__setupEvents();
this.__setupSubmitAndResetHelperOnConnected();
// Old browsers (IE11, Old Edge, Firefox ESR 60) don't have the `.form`
// property defined immediately on the native button, so do this after first render on connected.
this.updateComplete.then(() => {
this.__setupSubmitAndResetHelperOnConnected();
});
}

@@ -225,3 +229,8 @@

*/
__clickDelegationHandler(ev) {
async __clickDelegationHandler(ev) {
// Wait for updateComplete if form is not yet available
if (!this._form) {
await this.updateComplete;
}
if ((this.type === 'submit' || this.type === 'reset') && ev.target === this && this._form) {

@@ -228,0 +237,0 @@ /**

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