@prof-dev/improved-select
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -130,7 +130,3 @@ "use strict"; | ||
if (!(this.activeToggleElement !== undefined && this.selectBody !== null)) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, (0, dom_1.computePosition)(this.activeToggleElement, this.selectBody, { | ||
strategy: this.options.strategy, | ||
placement: "bottom", | ||
middleware: [(0, dom_1.offset)(8), (0, dom_1.flip)(), (0, dom_1.shift)({ padding: 12 })], | ||
})]; | ||
return [4 /*yield*/, (0, dom_1.computePosition)(this.activeToggleElement, this.selectBody, __assign(__assign({}, this.options), { middleware: [(0, dom_1.offset)(8), (0, dom_1.flip)(), (0, dom_1.shift)({ padding: 12 })] }))]; | ||
case 1: | ||
@@ -137,0 +133,0 @@ _a = _b.sent(), x = _a.x, y = _a.y; |
{ | ||
"name": "@prof-dev/improved-select", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "Helper for live clicks events management", | ||
@@ -12,3 +12,2 @@ "main": "lib/ImprovedSelect.js", | ||
"build:only": "tsc && npm run sass", | ||
"prepublish": "npm run build", | ||
"publish:patch": "npm version patch && npm run build && npm publish", | ||
@@ -15,0 +14,0 @@ "clean": "rimraf lib/*" |
@@ -5,3 +5,2 @@ import { EventEmitter } from "@prof-dev/event-emitter"; | ||
computePosition, | ||
ComputePositionConfig, | ||
flip, | ||
@@ -48,3 +47,3 @@ offset, | ||
private isHtmlValue: boolean = false; | ||
private options: Partial<ComputePositionConfig> = {}; | ||
private options: SelectOptions = {}; | ||
private cleanup?: () => void; | ||
@@ -305,4 +304,3 @@ | ||
{ | ||
strategy: this.options.strategy, | ||
placement: "bottom", | ||
...this.options, | ||
middleware: [offset(8), flip(), shift({ padding: 12 })], | ||
@@ -309,0 +307,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84412
1484