preline icon indicating copy to clipboard operation
preline copied to clipboard

In Sveltekit Combox and other components

Open PriyanshIotWiz opened this issue 1 year ago • 2 comments

Summary

In component where inline

use it show error Expected }svelte(unexpected-token)

Steps to Reproduce

Copy from Dropdown Using JSON example in dropdown. refrence and paste in sveltekit html

it show error like this bug So I have to relace this red mark orignal with this and its working

final

Demo Link

sad

Expected Behavior

No response

Actual Behavior

No response

Screenshots

No response

PriyanshIotWiz avatar Jun 08 '24 05:06 PriyanshIotWiz

carousel same error

In each component where data-hs-XXX ='{ "loadingClasses": "opacity-0" }' it show error like this in sveltekit Expected }svelte(unexpected-token) Expected }ts(-1)

For example:

PriyanshIotWiz avatar Jun 08 '24 05:06 PriyanshIotWiz

For example:

PriyanshIotWiz avatar Jun 08 '24 05:06 PriyanshIotWiz

@PriyanshIotWiz Hi, Try using data attributes like this data-hs-*={`{...rest of the parameters}`} You need to put the options object (as a string) between the curly braces. We have an example of using data options on the "Select" demo page.

olegpix avatar Jul 11 '24 16:07 olegpix