-
-
Save JontyMC/b4c370f1a2c4441a808e4f41a77d3c01 to your computer and use it in GitHub Desktop.
Vuplex select issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div style="position: fixed; background: green; width: 300px; height: 500px; z-index: 1"> | |
<select> | |
<option>Test Option One</option> | |
<option>Test Option Two</option> | |
<option>Test Option Three</option> | |
</select> | |
</div> | |
<div style="position: fixed; background: green; width: 300px; height: 500px; z-index: 1; top: 100px;"> | |
<select> | |
<option>Test Option One</option> | |
<option>Test Option Two</option> | |
<option>Test Option Three</option> | |
</select> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class App { | |
things = [ | |
{ id: 0, name: 'foo' }, | |
{ id: 1, name: 'bar'}, | |
{ id: 2, name: 'baz'}]; | |
selectedThings = []; | |
selectedThings2 = []; | |
attached() { | |
document.addEventListener('focusin', x => { | |
console.log('focusin', x); | |
}); | |
document.addEventListener('focusout', x => { | |
console.log('focusout', x); | |
}); | |
document.addEventListener('blur', x => { | |
console.log('blur', x); | |
}); | |
document.addEventListener('change', x => { | |
console.log('change', x); | |
}); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet" /> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.min.js"></script> | |
<style> | |
vuplex-dropdown-container { | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
} | |
vuplex-dropdown { | |
position: absolute; | |
background-color: black; | |
display: block; | |
box-shadow: 0 4px 10px rgba(0, 0, 0, .2); | |
border: 1px solid #bcbcbc; | |
z-index: 2147483648; | |
max-height: 300px; | |
overflow: scroll; | |
text-align: left; | |
} | |
vuplex-dropdown-option[selected] { | |
background-color: #1275ff; | |
color: white; | |
} | |
vuplex-dropdown-option { | |
display: block; | |
padding: 5px 10px; | |
color: #1e1e1e; | |
cursor: default; | |
} | |
vuplex-dropdown { | |
text-align: left; | |
} | |
</style> | |
</head> | |
<body aurelia-app> | |
<h1>Loading...</h1> | |
<script src="https://jdanyow.github.io/rjs-bundle/node_modules/requirejs/require.js"></script> | |
<script src="https://jdanyow.github.io/rjs-bundle/config.js"></script> | |
<script src="https://jdanyow.github.io/rjs-bundle/bundles/aurelia.js"></script> | |
<script src="https://jdanyow.github.io/rjs-bundle/bundles/babel.js"></script> | |
<script> | |
require(['aurelia-bootstrapper']); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment