Comments (4)
Hi,
Thanks for pointing that out to me, I'm sure you'd be happy to know that it now works.
Thanks for all your help & support
from skeleton.
@libdev-hacker this is a fairly complex combination of features. A minimal reproduction would be welcome please.
from skeleton.
Here is a video showing the issue (I apologise for the zip archive): autocomplete-in-modalzip.zip
Here is an example of how I'm trying to use these features:
<script lang='ts'>
const modalStore: ModalStore = getModalStore();
var autocomplete: AutocompleteOption<string>[] = [
{ label: "Test", value: "test" }
];
let input: string = "";
export let parent: SvelteComponent;
</script>
{#if $modalStore[0]}
<div id="modal" class="bg-slate-800 grid grid-cols-1 grid-rows-2 grid-flow-col justify-items-center rounded-lg w-modal h-56 relative bottom-48">
<div>
<input class="input w-96 max-w-sm max-h-12 mb-2" bind:value={input} type="text" placeholder="Search..." />
<div class="card w-full max-w-sm max-h-48 p-4 overflow-y-auto" tabindex="-1">
<Autocomplete bind:input={input} options={autocomplete} on:selection={onSelection}/>
</div>
</div>
</div>
{/if}
from skeleton.
@libdev-hacker thanks for the snippet. Unfortunately it looks like onSelection()
was not included in your code. This is a function you should be defining and handling, like:
function onSelection(event) {
console.log(event.detail);
}
<Autocomplete ... on:selection={onSelection}/>
This is not well explained in the docs, but is present in the documentation for the main demo at the top of the page. Just tap the Code view, then you'll see this:
Alternatively, if you're not using the on:selection
, just prune it from the component.
from skeleton.
Related Issues (20)
- Update README assets for Skeleton v3 HOT 1
- NEXT Doc Search HOT 7
- Package and doc issues to resolve HOT 3
- NEXT: Installation page misspells "configure" twice HOT 1
- Web site Theme Error On Arc HOT 3
- ListBox + Popup on a Modal HOT 5
- Tailwind v4 Oxide <--> Skeleton v3 HOT 6
- Chore: Add `environment info` request on bug tickets
- Standardize Dev Tooling and CI Pipelines HOT 1
- Some v2 doc images are not displaying
- Integration: Data Visualization
- v3 Custom Theme Doc Errors
- v3 Tailwind > Gradients CSS button has broken link
- Review "RestProps" spread method for arbitrary attributes HOT 2
- v3 Switch Component - Quick Patch
- computed styles not being applied HOT 3
- Repeated word in Docs HOT 1
- Audio/video components
- Svelte v5 RC: InputChip component produces errors HOT 7
- v3 React AppBar does not follow export conventions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skeleton.