enhance(parser-input-select): parser-false on input within cell (#1809)

* enhance(parser-input-select): parser-false on input within cell

* Update parser-input-select.js

* Update parser-input-select.js

Clarify use
This commit is contained in:
Jason McNeil 2022-02-18 10:11:51 -04:00 committed by GitHub
parent 7bedd220a6
commit 39d99f6857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,10 @@
this.value = $( this ).data( 'ts-original-value' ); this.value = $( this ).data( 'ts-original-value' );
}) })
.on( 'change keyup '.split( ' ' ).join( namespace + ' ' ), 'select, input, textarea', function( event ) { .on( 'change keyup '.split( ' ' ).join( namespace + ' ' ), 'select, input, textarea', function( event ) {
// don't use updateCell if this (input) is set to 'parser-false'
if (this.classList.contains('parser-false')) {
return;
}
var $row = $( this ).closest( 'tr' ), var $row = $( this ).closest( 'tr' ),
c = $row.closest( 'table' )[0].config; c = $row.closest( 'table' )[0].config;
if ( !c || c && c.ignoreChildRow && $row.hasClass( c.cssChildRow ) ) { if ( !c || c && c.ignoreChildRow && $row.hasClass( c.cssChildRow ) ) {