Comments (7)
@ju5t Is the DOM not being updated at all?
from alpine-clipboard.
@ryangjchandler it is, I verified with Ray too and added now()
to the list. When I remove the clipboard and just use standard blade to output the user's name for example, it refreshes as expected.
I'm pretty sure this is not related to $clipboard
right now as this code, doesn't refresh either:
<span x-data="{ value: '{{ $user->name }}' }">
<span x-html="value" />
</span>
$user
is inside the loop, by the way. It's too bad it doesn't work as this is a pretty useful thing for us. I'll ask at Livewire.
from alpine-clipboard.
I'd maybe try a wire:key
as well.
from alpine-clipboard.
I initially typed a lot more in my previous reply. TLDR-version; I tried wire:key
and using custom id's combined with {{ $loop>index }}
but that made no difference, unfortunately.
from alpine-clipboard.
@ryangjchandler you know what's weird too? I just noticed that on a page with Livewire pagination, whenever we use the clipboard, Livewire for some reason struggles with diffing things. I don't think we had this problem with Alpine v2, but I can't remember - it's already too long ago :)
Essentially all data that is within a clipboard/Alpine component is stuck and won't get the correct data on page 2 and so on (we use Livewire pagination, we're not refreshing the page).
I'll try and work with @entangle
on those Livewire pages, I'm guessing that would work.
from alpine-clipboard.
Yeah, this is a problem even without $clipboard
based on my own reproduction cases.
from alpine-clipboard.
I've opened up livewire/livewire#3778 to continue this. I don't think this issue should stay open so I will close it.
from alpine-clipboard.
Related Issues (16)
- Allow passing in closure
- Allow passing through mime type when copying
- Alpine Error: "TypeError: Cannot read property 'writeText' of undefined" HOT 2
- $clipboard(dataelement) gives writeText error HOT 1
- Copy tables? HOT 3
- alpine clipboard and TALL stack HOT 10
- Doesn't work on the mobile version of safari HOT 3
- Inline onCopy hook HOT 5
- html specialchars HOT 1
- Adding to filament HOT 2
- Package HOT 1
- Add support for modern Clipboard API
- Clipboard not working on first click in windows HOT 5
- Multiline text not copying HOT 2
- Add permissions check
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 alpine-clipboard.