Comments (9)
It is because .remove() function is not supported by IE.
You can use jquery or augmenting native DOM functions instead.
@tameemsafi I can take a look at this issue if you want me to.
from typewriterjs.
For me the problem (or some other?) still exists. When using .deleteChars(x) IE11 gives me the following error:
"Uncaught Type: Cannot Read Property RemoveChild of Null"
This problem does not exist in version 2.5.0 but does in 2.5.1 and 2.5.2. Hope this helps.
from typewriterjs.
@realgs that would be great if you can do that and make a pull request
from typewriterjs.
It is because .remove() function is not supported by IE.
Yes, that's it. I could fix it in my project by adding the dom4 polyfill.
from typewriterjs.
You can also import from corejs library.
https://github.com/zloirock/core-js/blob/master/README.md
from typewriterjs.
I wanted to test my solution before PR, how do you run your project? There are no instructions in readme.md. Which local server do you use?
I tried building the project with yarn run build:dev and then running live-server on chained-example but there's a 404 error on dist/core.js file. From google I can suppose it might be related to Grunt. If I manually copy the dist/core.js file to examples/chained-example/ and link it adequately everything works fine.
from typewriterjs.
@realgs You need to use some sort of server. I would recommend http-server
on npm and then run that command on the main repo directory locally. That way you will have access to localhost:8080/examples
folder.
Also I fixed the issue now in v2.5.0
. I just imported a polyfill for node.remove
.
from typewriterjs.
I am also facing the problem, that too many characters are deleted when using .deleteChars() in the second loop run.
See here dev.pds.ultrabold.de. it runs 4 sentences but when running the second time it deletes the whole sentence instead of just a few words (as expected).
from typewriterjs.
I also tested deleteChars(#)
as well as adding DOM4
to polyfill. Unfortunately neither methods worked for me and the bug still occurs for IE11.
from typewriterjs.
Related Issues (20)
- onRemoveNode parameter is mispelled `charater`
- Start typewriter when click on a button
- is typewriter-effect@latest/dist/core.js down?
- Colors? HOT 1
- Why clearing text in the end by default? HOT 3
- Does not work if the page is reloaded multiple times
- TypeError: Super expression must either be null or a function On Nextjs 13 HOT 5
- core.js:1 Uncaught TypeError: HOT 1
- stop() doesn't work as expected (or not at all) HOT 1
- Unhandled Runtime Error HOT 4
- Pass data attributes to the span element created by the typewriter component
- deleteSpeed Not working as expected HOT 3
- Is there a way to skip the typewriting effect? So if someone wants to not wait just click a button SKIP HOT 1
- isTyping(()->do something)? Is there any similar function in typewriterjs that will keep triggering a function? HOT 5
- How can I render HTML with tailwind classes inside `.pasteString()`? HOT 2
- Question HOT 1
- Typwriter not typing in react-modal HOT 1
- Can't insert new line element. HOT 1
- Typewriter pauses typing when browser tab is switched (Next.js) HOT 6
- Type word by word and release changeCursor 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 typewriterjs.