Socket
Socket
Sign inDemoInstall

@odopod/odo-dropdown

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odopod/odo-dropdown - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

43

dist/odo-dropdown.js

@@ -10,4 +10,2 @@ (function (global, factory) {

var babelHelpers = {};
var classCallCheck = function (instance, Constructor) {

@@ -37,2 +35,10 @@ if (!(instance instanceof Constructor)) {

var inherits = function (subClass, superClass) {

@@ -54,2 +60,12 @@ if (typeof superClass !== "function" && superClass !== null) {

var possibleConstructorReturn = function (self, call) {

@@ -63,6 +79,2 @@ if (!self) {

babelHelpers;
var id = 0;

@@ -202,2 +214,3 @@ function uniqueId() {

var _id = this._label.id;
this._optionsContainer.setAttribute('aria-labelledby', _id);

@@ -602,3 +615,3 @@ }

key: 'selectedIndex',
get: function get() {
get: function get$$1() {
return this._select.selectedIndex;

@@ -612,3 +625,3 @@ }

,
set: function set(index) {
set: function set$$1(index) {
this.value = this._select.options[index].value;

@@ -624,3 +637,3 @@ }

key: 'select',
get: function get() {
get: function get$$1() {
return this._select;

@@ -636,3 +649,3 @@ }

key: 'button',
get: function get() {
get: function get$$1() {
return this._button;

@@ -648,3 +661,3 @@ }

key: 'selectedText',
get: function get() {
get: function get$$1() {
return this._select.options[this._select.selectedIndex].text;

@@ -660,3 +673,3 @@ }

key: 'value',
get: function get() {
get: function get$$1() {
return this._select.value;

@@ -670,3 +683,3 @@ }

,
set: function set(value) {
set: function set$$1(value) {
// Remove the old selected class.

@@ -709,3 +722,3 @@ if (this._selectedOption) {

key: 'disabled',
get: function get() {
get: function get$$1() {
return this.select.disabled;

@@ -719,3 +732,3 @@ }

,
set: function set(isDisabled) {
set: function set$$1(isDisabled) {
this.select.disabled = isDisabled;

@@ -722,0 +735,0 @@ this.button.disabled = isDisabled;

{
"name": "@odopod/odo-dropdown",
"description": "Custom dropdown component that defaults to native select elements on touch devices.",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/odo-dropdown.js",

@@ -19,5 +19,5 @@ "style": "css/odo-dropdown.css",

"dependencies": {
"@odopod/odo-base-component": "^1.1.2",
"@odopod/odo-device": "^1.0.1",
"@odopod/odo-helpers": "^1.0.1"
"@odopod/odo-base-component": "^1.1.3",
"@odopod/odo-device": "^1.0.2",
"@odopod/odo-helpers": "^1.0.2"
},

@@ -24,0 +24,0 @@ "homepage": "https://github.com/odopod/code-library/tree/master/packages/odo-dropdown",

@@ -122,3 +122,3 @@ import OdoDevice from '@odopod/odo-device';

dom.giveId(this._label, this.id + '-label');
const id = this._label.id;
const { id } = this._label;
this._optionsContainer.setAttribute('aria-labelledby', id);

@@ -307,4 +307,6 @@ }

this._optionsContainer.classList.add(Dropdown.Classes.OPTIONS_CONTAINER_OPEN);
this._transitionId = animation.onTransitionEnd(this._optionsContainer,
this._handleOptionsShown, this);
this._transitionId = animation.onTransitionEnd(
this._optionsContainer,
this._handleOptionsShown, this,
);
}

@@ -338,4 +340,6 @@

this._optionsContainer.classList.remove(Dropdown.Classes.OPTIONS_CONTAINER_OPEN);
this._transitionId = animation.onTransitionEnd(this._optionsContainer,
this._handleOptionsHidden, this);
this._transitionId = animation.onTransitionEnd(
this._optionsContainer,
this._handleOptionsHidden, this,
);
}

@@ -342,0 +346,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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