mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-18 13:00:39 -05:00
fix exception thrown but not shown in DOM in event handler (#1131)
* fix exception not thrown in event handler * fix implicit display test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -52,7 +52,7 @@ export function pyDisplay(interpreter: Interpreter, obj: any, kwargs: object) {
|
||||
}
|
||||
}
|
||||
|
||||
function displayPyException(err: any, errElem: HTMLElement) {
|
||||
export function displayPyException(err: any, errElem: HTMLElement) {
|
||||
//addClasses(errElem, ['py-error'])
|
||||
const pre = document.createElement('pre');
|
||||
pre.className = 'py-error';
|
||||
|
||||
Reference in New Issue
Block a user