-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(sample): documented why autoresize is missing
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
##### Textareas don't autoresize | ||
|
||
The reason for that is there's a "hiddendiv" created on ```document.ready()``` to determine the height of the resized textarea. | ||
That hidden div doesn't exist anymore when the sample app creates real textareas ([see here](https://github.com/Dogfalo/materialize/blob/master/js/forms.js#L111)). | ||
After Aurelia takes control, it replaces the content of its container (meaning ```aurelia-app="main"```). | ||
|
||
<br/> | ||
|
||
The reference to ```hiddenDiv``` (a variable) is essentially broken once Aurelia kicks in. I'm not sure if there is any good workaround apart from creating such a div manually and outside of Aurelia scope. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters