-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve support for input elements outside form.
- Loading branch information
Showing
10 changed files
with
82 additions
and
12 deletions.
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,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>test mutation observer destroy</title> | ||
<link rel="stylesheet" href="/style/common.css" /> | ||
src="/bundle.min.js"></script> src="/bundle.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="el"><p></p></div> | ||
src="/bundle.min.js"></script>> | ||
const el = document.getElementById('el'); | ||
const observer = new MutationObserver((rec) => { | ||
debugger; | ||
console.log("mutation"); | ||
}); | ||
observer.observe(el, { | ||
attributeFilter: ["class"], | ||
childList: true, | ||
}); | ||
|
||
//debugger; | ||
|
||
//observer.disconnect(); | ||
</script> | ||
</body> | ||
</html> |
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
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
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
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,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<script src="/bundle.min.js"></script> | ||
<title>Infinite scrolling</title> | ||
</head> | ||
<body> | ||
|
||
<form class="pat-checklist"> | ||
<label><input type="checkbox" class="toggle-all" />Toggle checkboxes</label><br> | ||
<fieldset id="infinite-boxes"> | ||
<label><input type="checkbox" checked="checked" /> Option one</label><br> | ||
<label><input type="checkbox" /> Option two</label><br> | ||
<label><input type="checkbox" /> Option three</label><br> | ||
<label><input type="checkbox" /> Option four</label><br> | ||
|
||
<a | ||
href="./index-infinite.html#infinite-boxes" | ||
class="pat-inject" | ||
data-pat-inject="trigger: autoload-visible; target:self::element" | ||
>Loading...</a> | ||
|
||
</fieldset> | ||
</form> | ||
|
||
</body> | ||
</html> |
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
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
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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>Test</title> | ||
<link rel="stylesheet" href="/style/common.css" /> | ||
<script src="/bundle.min.js"></script> | ||
</head> | ||
<body> | ||
<form class="pat-form pat-inject"> | ||
<button formaction="test.html" class="pat-button" type="submit">Save button</button> | ||
</form> | ||
</body> | ||
</html> |
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 @@ | ||
./py/bin/python send.py quaivedemo push_marker message_counter |
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