Comments (7)
just remove the code "elmInputBox.elastic();" from the js. it should work that way !
but don't forget, you will face a problems with the the highlight. so it's better to stay using elastic or to remove the highlighting :D
from jquery-mentions-input.
Sure, but the idea is to make as few modifications to upstream code as possible, in order to make a simple update of a js lib not a possible source for regressions.
from jquery-mentions-input.
+1
I'd like to know the reasoning for putting elastic in this. It seems unneeded. But if I remove that elastic()
line from the source it doesn't work anymore.
from jquery-mentions-input.
The reason for why the mentionsInput needs to be "elastic", is because the highlighting of is happening in an underlay underneath the textarea.
If the textarea is having a fixed height, at some point scrollbars will appear, and then the position of the underlay would need to be update. This would require some syncing of positions triggered by the scroll-event, and I imagine it would be a mess, and have bad performance.
So currently if we remove, or disable the elastic-ness, content in the textarea and the underlay would be out of sync when scrolling.
from jquery-mentions-input.
+1
from jquery-mentions-input.
How about making it an undocumented, non-default option?
So that those who want to use a different auto-resize plugin can do so, without having to modify this plugin (even if it's just one line that needs to be commented out).
;)
from jquery-mentions-input.
I re-added the option. a60ab5c
from jquery-mentions-input.
Related Issues (20)
- Don't work on android device Samsung Galaxy S7 HOT 7
- elmInputBox.elastic is not a function HOT 1
- how can i edit after mention in textarea HOT 2
- Don't erase the "@" after selecting a username HOT 1
- how to use the addMention function? HOT 1
- Issue with integration. Getting data for the plug-in
- Selecting mentioned users from the list
- Using jquery-mentions-input in Angular 6
- Demo code not working: "elmInputBox.elastic is not a function" HOT 3
- How to disable elastic? HOT 1
- how to disable and reinitialize jquerymentionsinput on a textarea??
- Deleting the whole text only deletes the last character in the buffer
- Handling arrow key presses
- Feature reguest: Deleting entire mention at once
- Not able to fetch the mention data on submit !!
- It's just compatible with Underscore 1.8.3 !
- how to separate mentions and text message any function or we have to write a regex ? HOT 1
- does not work for dynamic elements
- jQuery Mentions does not work with multiple textboxes on the same page.
- There is a problem when mentioned username contains $& in it.
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 jquery-mentions-input.